mirror of
https://github.com/kdave/btrfs-progs
synced 2025-02-16 09:46:55 +00:00
btrfs-progs: check: remove inode cache clearing functionality
Since we're already directing the end user to use "btrfs rescue clear-ino-cache" command, there is not much need to support it in btrfs-check. Signed-off-by: Qu Wenruo <wqu@suse.com> Signed-off-by: David Sterba <dsterba@suse.com>
This commit is contained in:
parent
171dd56995
commit
eae4109054
@ -101,13 +101,6 @@ SAFE OR ADVISORY OPTIONS
|
|||||||
This option is deprecated, please use `btrfs rescue clear-space-cache`
|
This option is deprecated, please use `btrfs rescue clear-space-cache`
|
||||||
instead, this option would be removed in the future eventually.
|
instead, this option would be removed in the future eventually.
|
||||||
|
|
||||||
--clear-ino-cache
|
|
||||||
remove leftover items pertaining to the deprecated `inode cache` feature
|
|
||||||
|
|
||||||
.. warning::
|
|
||||||
This option is deprecated, please use `btrfs rescue clear-ino-cache`
|
|
||||||
instead, this option would be removed in the future eventually.
|
|
||||||
|
|
||||||
DANGEROUS OPTIONS
|
DANGEROUS OPTIONS
|
||||||
-----------------
|
-----------------
|
||||||
|
|
||||||
@ -147,6 +140,16 @@ DANGEROUS OPTIONS
|
|||||||
This option also skips the delay and warning in the repair mode (see
|
This option also skips the delay and warning in the repair mode (see
|
||||||
*--repair*).
|
*--repair*).
|
||||||
|
|
||||||
|
DEPRECATED OR MOVED OPTIONS
|
||||||
|
---------------------------
|
||||||
|
|
||||||
|
--clear-ino-cache
|
||||||
|
(removed: 6.7)
|
||||||
|
|
||||||
|
remove leftover items pertaining to the deprecated *inode cache* feature,
|
||||||
|
please use :ref:`btrfs rescue clear-ino-cache<man-rescue-clear-ino-cache>`
|
||||||
|
instead
|
||||||
|
|
||||||
EXIT STATUS
|
EXIT STATUS
|
||||||
-----------
|
-----------
|
||||||
|
|
||||||
|
@ -50,6 +50,8 @@ fix-device-size <device>
|
|||||||
|
|
||||||
WARNING: CPU: 3 PID: 439 at fs/btrfs/ctree.h:1559 btrfs_update_device+0x1c5/0x1d0 [btrfs]
|
WARNING: CPU: 3 PID: 439 at fs/btrfs/ctree.h:1559 btrfs_update_device+0x1c5/0x1d0 [btrfs]
|
||||||
|
|
||||||
|
.. _man-rescue-clear-ino-cache:
|
||||||
|
|
||||||
clear-ino-cache <device>
|
clear-ino-cache <device>
|
||||||
Remove leftover items pertaining to the deprecated `inode cache` feature.
|
Remove leftover items pertaining to the deprecated `inode cache` feature.
|
||||||
|
|
||||||
|
@ -489,7 +489,8 @@ inode_cache, noinode_cache
|
|||||||
|
|
||||||
.. note::
|
.. note::
|
||||||
The functionality has been removed in 5.11, any stale data created by
|
The functionality has been removed in 5.11, any stale data created by
|
||||||
previous use of the *inode_cache* option can be removed by :command:`btrfs check --clear-ino-cache`.
|
previous use of the *inode_cache* option can be removed by
|
||||||
|
:ref:`btrfs rescue clear-ino-cache<man-rescue-clear-ino-cache>`.
|
||||||
|
|
||||||
|
|
||||||
NOTES ON GENERIC MOUNT OPTIONS
|
NOTES ON GENERIC MOUNT OPTIONS
|
||||||
|
12
check/main.c
12
check/main.c
@ -9994,7 +9994,6 @@ static int cmd_check(const struct cmd_struct *cmd, int argc, char **argv)
|
|||||||
int init_csum_tree = 0;
|
int init_csum_tree = 0;
|
||||||
int readonly = 0;
|
int readonly = 0;
|
||||||
int clear_space_cache = 0;
|
int clear_space_cache = 0;
|
||||||
int clear_ino_cache = 0;
|
|
||||||
int qgroup_report = 0;
|
int qgroup_report = 0;
|
||||||
int qgroups_repaired = 0;
|
int qgroups_repaired = 0;
|
||||||
int qgroup_verify_ret;
|
int qgroup_verify_ret;
|
||||||
@ -10118,8 +10117,8 @@ static int cmd_check(const struct cmd_struct *cmd, int argc, char **argv)
|
|||||||
ctree_flags |= OPEN_CTREE_WRITES;
|
ctree_flags |= OPEN_CTREE_WRITES;
|
||||||
break;
|
break;
|
||||||
case GETOPT_VAL_CLEAR_INO_CACHE:
|
case GETOPT_VAL_CLEAR_INO_CACHE:
|
||||||
clear_ino_cache = 1;
|
error("--clear-ino-cache option is deprecated, please use \"btrfs rescue clear-ino-cache\" instead");
|
||||||
ctree_flags |= OPEN_CTREE_WRITES;
|
exit(1);
|
||||||
break;
|
break;
|
||||||
case GETOPT_VAL_FORCE:
|
case GETOPT_VAL_FORCE:
|
||||||
force = 1;
|
force = 1;
|
||||||
@ -10234,13 +10233,6 @@ static int cmd_check(const struct cmd_struct *cmd, int argc, char **argv)
|
|||||||
goto close_out;
|
goto close_out;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (clear_ino_cache) {
|
|
||||||
warning("--clear-ino-cache option is deprecated, please use \"btrfs rescue clear-ino-cache\" instead");
|
|
||||||
ret = clear_ino_cache_items(gfs_info);
|
|
||||||
err = ret;
|
|
||||||
goto close_out;
|
|
||||||
}
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* repair mode will force us to commit transaction which
|
* repair mode will force us to commit transaction which
|
||||||
* will make us fail to load log tree when mounting.
|
* will make us fail to load log tree when mounting.
|
||||||
|
@ -9,7 +9,7 @@ setup_root_helper
|
|||||||
|
|
||||||
image=$(extract_image "./ino-cache-enabled.raw.xz")
|
image=$(extract_image "./ino-cache-enabled.raw.xz")
|
||||||
|
|
||||||
run_check "$TOP/btrfs" check --clear-ino-cache "$image"
|
run_check "$TOP/btrfs" rescue clear-ino-cache "$image"
|
||||||
run_check "$TOP/btrfs" check "$image"
|
run_check "$TOP/btrfs" check "$image"
|
||||||
|
|
||||||
# Check for FREE_INO items for toplevel subvol
|
# Check for FREE_INO items for toplevel subvol
|
Loading…
Reference in New Issue
Block a user