Whamcloud - gitweb
git://git.whamcloud.com
/
tools
/
e2fsprogs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
combined
(merge:
6a6337c
8185ab9
)
Merge branch 'maint' into next
author
Theodore Ts'o
<tytso@mit.edu>
Tue, 7 Jun 2011 17:38:38 +0000
(13:38 -0400)
committer
Theodore 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
patch
|
diff1
|
diff2
|
blob
|
history
diff --cc
misc/mke2fs.c
index
718e273
,
e28828e
..
0b7487f
---
1
/
misc/mke2fs.c
---
2
/
misc/mke2fs.c
+++ b/
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"));