]> granicus.if.org Git - zfs/commitdiff
Enable .zfs/snapshot for 32-bit systems
authorBrian Behlendorf <behlendorf1@llnl.gov>
Fri, 28 Oct 2016 22:42:56 +0000 (22:42 +0000)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Wed, 2 Nov 2016 19:14:45 +0000 (12:14 -0700)
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

module/zfs/zfs_ctldir.c

index 78bc7974001ab1a90b81b21cf1094cda7ef0097e..c7a93edfc261797de6f86a7b1fbbed068893798d 100644 (file)
@@ -548,7 +548,6 @@ zfsctl_inode_lookup(zfs_sb_t *zsb, uint64_t id,
 int
 zfsctl_create(zfs_sb_t *zsb)
 {
-#if defined(CONFIG_64BIT)
        ASSERT(zsb->z_ctldir == NULL);
 
        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 (0);
-#else
-       return (SET_ERROR(EOPNOTSUPP));
-#endif /* CONFIG_64BIT */
 }
 
 /*