]> git.ipfire.org Git - thirdparty/xfsprogs-dev.git/commitdiff
xfs_repair: remove unused fs_shared_allowed variable
authorEric Sandeen <sandeen@redhat.com>
Tue, 3 Apr 2018 16:13:57 +0000 (11:13 -0500)
committerEric Sandeen <sandeen@sandeen.net>
Tue, 3 Apr 2018 16:13:57 +0000 (11:13 -0500)
The fs_shared_allowed global was set to 1 and then ignored, and
in fact the feature is never actualy allowed.  Remove it and
the last stragglers of the old features comment.

Signed-off-by: Eric Sandeen <sandeen@redhat.com>
Reviewed-by: Darrick J. Wong <darrick.wong@oracle.com>
Signed-off-by: Eric Sandeen <sandeen@sandeen.net>
repair/versions.h
repair/xfs_repair.c

index 8b95fc2764299fb009e8b50f5276227ae93ec058..1fac278e9216a7a71a167a80e801e68717fcb203 100644 (file)
 #define EXTERN extern
 #endif /* EXTERN */
 
-/*
- * possible XFS filesystem features
- *
- * inode version 2 (32-bit link counts)                (6.2)
- */
-
-/*
- * filesystem feature global vars, set to 1 if the feature
- * is *allowed*, 0 otherwise.  These can be set via command-line
- * options
- */
-
-EXTERN int             fs_shared_allowed;
-
 /*
  * filesystem feature global vars, set to 1 if the feature
  * is on, 0 otherwise
@@ -49,7 +35,6 @@ EXTERN int            fs_quotas;
 EXTERN int             fs_aligned_inodes;
 EXTERN int             fs_sb_feature_bits;
 EXTERN int             fs_has_extflgbit;
-EXTERN int             fs_shared;
 
 /*
  * inode chunk alignment, fsblocks
index a2f3f62090176ba99a56597d82fe60f316dc7cd2..3caf9bb34231b8541941b07dc5f13a7cc4c424e5 100644 (file)
@@ -208,7 +208,6 @@ process_args(int argc, char **argv)
        sb_unit = 0;
        sb_width = 0;
        pre_65_beta = 0;
-       fs_shared_allowed = 1;
        ag_stride = 0;
        thread_count = 1;
        report_interval = PROG_RPT_DEFAULT;