1
0
mirror of git://sourceware.org/git/lvm2.git synced 2025-03-11 20:58:50 +03:00
lvm2/lib/metadata
David Teigland 7497bca317 lvreduce: check for file system that cannot be reduced
Add a new command line option --detectfs y|n, along with
the capability to detect if the LV contains a shrinkable
file system (using libblkid).

The new fs detection is performed by default to avoid
acccidental data loss by users who reduce an LV without
knowing that the file system cannot be reduced, or without
including the --resizefs option to reduce the reducible fs.
The new errors reported for these cases are:

$ lvreduce -L64M --detectfs y vg/lv
  Detected file system type xfs that cannot be reduced (from --detectfs).

$ lvreduce -L64M --detectfs y vg/lv
  Detected file system type ext4 that can be reduced (see --resizefs).

When detectfs is enabled, the lvreduce command will activate
the LV to check the fs type.

Using --detectfs n results in the same historical (and
somewhat dangerous) lvreduce behavior.
2021-05-05 11:01:21 -05:00
..
2021-03-14 16:34:38 +01:00
2020-12-09 17:36:09 -06:00
2021-03-08 15:43:27 +01:00
2020-09-15 22:52:25 +02:00
2021-03-10 01:11:52 +01:00
2016-01-21 12:11:37 +01:00
2018-06-08 14:36:56 +02:00
2021-02-23 16:43:32 -06:00
2021-02-23 16:43:32 -06:00
2021-03-30 13:08:14 +02:00
2018-06-05 16:23:18 +02:00
2021-03-08 15:33:15 +01:00
2021-03-08 15:30:18 +01:00