Skip to content

Commit 3b89906

Browse files
committed
btrfs-progs: check: remove --clear-ino-cache option
The inode_cache functionality is long gone and the 'rescue' group provides the clearning functionality, no point keeping it in check. Move the --clear-space-cache option to the deprecaeted section so it can be removed soon. Signed-off-by: David Sterba <[email protected]>
1 parent 5d97c32 commit 3b89906

File tree

2 files changed

+10
-24
lines changed

2 files changed

+10
-24
lines changed

Documentation/btrfs-check.rst

Lines changed: 9 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -92,15 +92,6 @@ SAFE OR ADVISORY OPTIONS
9292
This can be used to use a different starting point if some of the primary
9393
superblock is damaged.
9494

95-
--clear-space-cache v1|v2
96-
completely remove the free space cache of the given version
97-
98-
See also the *clear_cache* mount option.
99-
100-
.. warning::
101-
This option is deprecated, please use `btrfs rescue clear-space-cache`
102-
instead, this option would be removed in the future eventually.
103-
10495
DANGEROUS OPTIONS
10596
-----------------
10697

@@ -140,15 +131,17 @@ DANGEROUS OPTIONS
140131
This option also skips the delay and warning in the repair mode (see
141132
*--repair*).
142133

143-
DEPRECATED OR MOVED OPTIONS
144-
---------------------------
134+
DEPRECATED OR REMOVED OPTIONS
135+
-----------------------------
136+
137+
--clear-space-cache v1|v2
138+
completely remove the free space cache of the given version
145139

146-
--clear-ino-cache
147-
(removed: 6.7)
140+
See also the *clear_cache* mount option.
148141

149-
remove leftover items pertaining to the deprecated *inode cache* feature,
150-
please use :ref:`btrfs rescue clear-ino-cache<man-rescue-clear-ino-cache>`
151-
instead
142+
.. warning::
143+
This option is deprecated, please use `btrfs rescue clear-space-cache`
144+
instead, this option would be removed in the future eventually.
152145

153146
EXIT STATUS
154147
-----------

check/main.c

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -10117,7 +10117,6 @@ static const char * const cmd_check_usage[] = {
1011710117
OPTLINE("-p|--progress", "indicate progress"),
1011810118
"",
1011910119
"Deprecated or moved options:",
10120-
OPTLINE("--clear-ino-cache", "clear ino cache leftover items (moved to 'rescue' group)"),
1012110120
OPTLINE("--clear-space-cache v1|v2", "clear space cache for v1 or v2 (moved to 'rescue' group)"),
1012210121
NULL
1012310122
};
@@ -10152,7 +10151,7 @@ static int cmd_check(const struct cmd_struct *cmd, int argc, char **argv)
1015210151
GETOPT_VAL_INIT_EXTENT, GETOPT_VAL_CHECK_CSUM,
1015310152
GETOPT_VAL_READONLY, GETOPT_VAL_CHUNK_TREE,
1015410153
GETOPT_VAL_MODE, GETOPT_VAL_CLEAR_SPACE_CACHE,
10155-
GETOPT_VAL_CLEAR_INO_CACHE, GETOPT_VAL_FORCE };
10154+
GETOPT_VAL_FORCE };
1015610155
static const struct option long_options[] = {
1015710156
{ "super", required_argument, NULL, 's' },
1015810157
{ "repair", no_argument, NULL, GETOPT_VAL_REPAIR },
@@ -10174,8 +10173,6 @@ static int cmd_check(const struct cmd_struct *cmd, int argc, char **argv)
1017410173
GETOPT_VAL_MODE },
1017510174
{ "clear-space-cache", required_argument, NULL,
1017610175
GETOPT_VAL_CLEAR_SPACE_CACHE},
10177-
{ "clear-ino-cache", no_argument , NULL,
10178-
GETOPT_VAL_CLEAR_INO_CACHE},
1017910176
{ "force", no_argument, NULL, GETOPT_VAL_FORCE },
1018010177
{ NULL, 0, NULL, 0}
1018110178
};
@@ -10257,10 +10254,6 @@ static int cmd_check(const struct cmd_struct *cmd, int argc, char **argv)
1025710254
}
1025810255
ctree_flags |= OPEN_CTREE_WRITES;
1025910256
break;
10260-
case GETOPT_VAL_CLEAR_INO_CACHE:
10261-
error("--clear-ino-cache option is deprecated, please use \"btrfs rescue clear-ino-cache\" instead");
10262-
exit(1);
10263-
break;
1026410257
case GETOPT_VAL_FORCE:
1026510258
force = true;
1026610259
break;

0 commit comments

Comments
 (0)