[Ocfs2-tools-devel] [PATCH 7/7] Modify "Remove slot" to not coexist with others, take 3

Tao Ma tao.ma at oracle.com
Sun Nov 4 23:50:59 PST 2007


Let the function "Remove slot" doesn't run with
"sparse" function in tunefs.ocfs2.

Signed-off-by: Tao Ma <tao.ma at oracle.com>
---
 tunefs.ocfs2/remove_slot.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/tunefs.ocfs2/remove_slot.c b/tunefs.ocfs2/remove_slot.c
index 90369b1..1e4238a 100644
--- a/tunefs.ocfs2/remove_slot.c
+++ b/tunefs.ocfs2/remove_slot.c
@@ -756,7 +756,8 @@ errcode_t remove_slot_check(ocfs2_filesys *fs)
 	 * options to keep things simple.
 	 */
 	if (opts.backup_super ||opts.vol_label ||
-	     opts.mount || opts.jrnl_size || opts.num_blocks) {
+	     opts.mount || opts.jrnl_size || opts.num_blocks ||
+	     opts.list_sparse || opts.feature_string) {
 		com_err(opts.progname, 0, "Cannot remove slot"
 			" along with other tasks");
 		exit(1);
-- 
1.5.3.2.g4f337



More information about the Ocfs2-tools-devel mailing list