]> sourceware.org Git - lvm2.git/commit
fsadm fix for downsize of unmounted fs
authorZdenek Kabelac <zkabelac@redhat.com>
Wed, 10 Nov 2010 16:14:02 +0000 (16:14 +0000)
committerZdenek Kabelac <zkabelac@redhat.com>
Wed, 10 Nov 2010 16:14:02 +0000 (16:14 +0000)
commita9d6333bd66075484f59478085935e90052338b5
tree70c526a849192ae3a17231a2d40e8df33735e03d
parent1ef6fb2f5827fe42ca0ab16523b553c6db0b7427
fsadm fix for downsize of unmounted fs

Fix for the last commit as $MOUNTED is not only used as bool flag,
but also store mounted location for remount - so parsing output
from mount differently then from /proc/mounts.

Prefix calls of 'tunefs' tools with LANG=C to be sure we always do get
some nonlocalized strings.

Avoid using forced 'resize2fs' for cleanly unmounted filesystems and
run regular fsck -f for this case as required by resize2fs.

'fsadm check' uses date difference for extX filesystems between
the last mount and last check of 'fsck -f' execution and if the mount
was later run 'fsck' with -f so resize2fs is happy and user does not
need to pass '-f' flag.
WHATS_NEW
scripts/fsadm.sh
This page took 0.030645 seconds and 5 git commands to generate.