Whamcloud - gitweb
AOSP: e2fsck: Add an extended option for unsharing blocks.
authorDavid Anderson <dvander@google.com>
Mon, 5 Mar 2018 20:52:13 +0000 (12:52 -0800)
committerTheodore Ts'o <tytso@mit.edu>
Thu, 21 Jun 2018 13:56:30 +0000 (09:56 -0400)
commit91327df4575d1ee4eb57e586943a10b20a41cec8
tree1009fa334bce9f9c70b6d6169c8b2964de9e8691
parent9c5413b1aedd2706c3daff6c051fd3b483e5b62f
AOSP: e2fsck: Add an extended option for unsharing blocks.

Add an -E unshare_blocks flag for unsharing blocks that were created for
a filesystem with block sharing enabled. If the filesystem does not have
this feature enabled, the flag has no effect. If the filesystem does not
have free space, e2fsck will error.

Signed-off-by: Theodore Ts'o <tytso@mit.edu>
Google-Bug-Id: 64109868
Test: f_unshare_blocks_no_space, f_unshare_blocks_ok
Change-Id: I8821353e9e6200c6c0c71dd22f4f43d796fc720c
From AOSP commit: 8ba190e3135d61501d3a694b6960c2fbee98e7a6
15 files changed:
e2fsck/e2fsck.8.in
e2fsck/e2fsck.h
e2fsck/pass1.c
e2fsck/pass1b.c
e2fsck/unix.c
tests/f_unshare_blocks_no_space/expect.1 [new file with mode: 0644]
tests/f_unshare_blocks_no_space/expect.2 [new file with mode: 0644]
tests/f_unshare_blocks_no_space/image.gz [new file with mode: 0644]
tests/f_unshare_blocks_no_space/name [new file with mode: 0644]
tests/f_unshare_blocks_no_space/script [new file with mode: 0644]
tests/f_unshare_blocks_ok/expect.1 [new file with mode: 0644]
tests/f_unshare_blocks_ok/expect.2 [new file with mode: 0644]
tests/f_unshare_blocks_ok/image.gz [new file with mode: 0644]
tests/f_unshare_blocks_ok/name [new file with mode: 0644]
tests/f_unshare_blocks_ok/script [new file with mode: 0644]