From e8a447db4248f156d47a226323287a362bee8c72 Mon Sep 17 00:00:00 2001 From: Theodore Ts'o Date: Thu, 9 Aug 2001 06:13:18 -0400 Subject: [PATCH] mke2fs.c (PRS): Fix bug pointed out by Christopher Niessen; if mke2fs -O none is specified, the sparse_super feature should not be present. --- misc/ChangeLog | 4 ++++ misc/mke2fs.c | 4 ++-- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/misc/ChangeLog b/misc/ChangeLog index a6e06ce..0d03a4a 100644 --- a/misc/ChangeLog +++ b/misc/ChangeLog @@ -1,5 +1,9 @@ 2001-08-09 Theodore Tso + * mke2fs.c (PRS): Fix bug pointed out by Christopher Niessen; if + mke2fs -O none is specified, the sparse_super feature + should not be present. + * e2image.c, e2image.8.in: Add support for raw image files. 2001-08-04 Andreas Dilger diff --git a/misc/mke2fs.c b/misc/mke2fs.c index a6dfa50..8e9dffc 100644 --- a/misc/mke2fs.c +++ b/misc/mke2fs.c @@ -762,11 +762,11 @@ static void PRS(int argc, char *argv[]) int reserved_ratio = 5; ext2_ino_t num_inodes = 0; errcode_t retval; - int sparse_option = 1; + int sparse_option = 0; char * oldpath = getenv("PATH"); char * raid_opts = 0; char * fs_type = 0; - const char * feature_set = "filetype"; + const char * feature_set = "sparse_super,filetype"; blk_t dev_size; #ifdef linux struct utsname ut; -- 1.8.3.1