Whamcloud - gitweb
Merge branch 'maint' into next
authorTheodore Ts'o <tytso@mit.edu>
Tue, 7 Jun 2011 17:38:38 +0000 (13:38 -0400)
committerTheodore Ts'o <tytso@mit.edu>
Tue, 7 Jun 2011 17:38:38 +0000 (13:38 -0400)
Conflicts:
misc/mke2fs.c

1  2 
misc/mke2fs.c

diff --cc misc/mke2fs.c
@@@ -2136,9 -2142,10 +2136,9 @@@ int main (int argc, char *argv[]
        }
  
        /* Can't undo discard ... */
-       if (discard && (io_ptr != undo_io_manager)) {
+       if (!noaction && discard && (io_ptr != undo_io_manager)) {
 -              retval = mke2fs_discard_blocks(fs);
 -
 -              if (!retval && mke2fs_discard_zeroes_data(fs)) {
 +              retval = mke2fs_discard_device(fs);
 +              if (!retval && io_channel_discard_zeroes_data(fs->io)) {
                        if (verbose)
                                printf(_("Discard succeeded and will return 0s "
                                         " - skipping inode table wipe\n"));