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:
Brian Behlendorf 2016-10-28 22:42:56 +00:00
parent 48d3eb40c7
commit 4990e576c6

View File

@ -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 */
} }
/* /*