mirror of
git://sourceware.org/git/lvm2.git
synced 2024-12-21 13:34:40 +03:00
7497bca317
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. |
||
---|---|---|
.. | ||
activate | ||
cache | ||
cache_segtype | ||
commands | ||
config | ||
datastruct | ||
device | ||
display | ||
error | ||
filters | ||
format_text | ||
freeseg | ||
integrity | ||
label | ||
locking | ||
log | ||
lvmpolld | ||
metadata | ||
mirror | ||
misc | ||
mm | ||
notify | ||
properties | ||
raid | ||
report | ||
snapshot | ||
striped | ||
thin | ||
unknown | ||
uuid | ||
vdo | ||
writecache | ||
zero | ||
Makefile.in |