]> git.ipfire.org Git - thirdparty/e2fsprogs.git/commit - e2fsck/super.c
e2fsck: backup superblocks if key constants have changed
authorTheodore Ts'o <tytso@mit.edu>
Mon, 1 Oct 2007 13:18:54 +0000 (09:18 -0400)
committerTheodore Ts'o <tytso@mit.edu>
Sat, 6 Oct 2007 16:39:57 +0000 (12:39 -0400)
commit0c37f456d929dac47fcf87374f1c1b9a9a96c9fa
tree7383210edcf8aa6ba42f4f191148a6d6aa1fec0c
parent0cfce7f749ea519522929d91e705cf90518594c4
e2fsck: backup superblocks if key constants have changed

If the primary superblock differs from the backup superblock in
certain key respects, force a full check (if e2fsck was invoked in
preen mode).  If the filesystem check passes cleanly, and the
filesystem was opened in read/write mode, then write the primary
superblock to all of the backups.

Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
e2fsck/e2fsck.h
e2fsck/super.c
e2fsck/unix.c