mirror of
https://git.proxmox.com/git/mirror_zfs.git
synced 2024-12-27 11:29:36 +03:00
Enable .zfs/snapshot for 32-bit systems
Originally the .zfs/snapshot directory was disabled for 32-bit systems because 64-bit inode numbers were not supported. This is no longer the case and this functionality can be enabled by default. Reviewed-by: Tom Caputi <tcaputi@datto.com> Reviewed-by: Tim Chase <tim@chase2k.com> Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov> Issue #5347 Closes #2002
This commit is contained in:
parent
48d3eb40c7
commit
4990e576c6
@ -548,7 +548,6 @@ zfsctl_inode_lookup(zfs_sb_t *zsb, uint64_t id,
|
|||||||
int
|
int
|
||||||
zfsctl_create(zfs_sb_t *zsb)
|
zfsctl_create(zfs_sb_t *zsb)
|
||||||
{
|
{
|
||||||
#if defined(CONFIG_64BIT)
|
|
||||||
ASSERT(zsb->z_ctldir == NULL);
|
ASSERT(zsb->z_ctldir == NULL);
|
||||||
|
|
||||||
zsb->z_ctldir = zfsctl_inode_alloc(zsb, ZFSCTL_INO_ROOT,
|
zsb->z_ctldir = zfsctl_inode_alloc(zsb, ZFSCTL_INO_ROOT,
|
||||||
@ -557,9 +556,6 @@ zfsctl_create(zfs_sb_t *zsb)
|
|||||||
return (SET_ERROR(ENOENT));
|
return (SET_ERROR(ENOENT));
|
||||||
|
|
||||||
return (0);
|
return (0);
|
||||||
#else
|
|
||||||
return (SET_ERROR(EOPNOTSUPP));
|
|
||||||
#endif /* CONFIG_64BIT */
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
Loading…
Reference in New Issue
Block a user