Whamcloud - gitweb
git://git.whamcloud.com
/
tools
/
e2fsprogs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8f0b460
)
debugfs: return after printing the usage message in the e2freefrag command
author
Theodore Ts'o
<tytso@mit.edu>
Mon, 26 May 2025 20:25:15 +0000
(16:25 -0400)
committer
Theodore Ts'o
<tytso@mit.edu>
Mon, 26 May 2025 20:25:15 +0000
(16:25 -0400)
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
misc/e2freefrag.c
patch
|
blob
|
history
diff --git
a/misc/e2freefrag.c
b/misc/e2freefrag.c
index
437f011
..
7e095be
100644
(file)
--- a/
misc/e2freefrag.c
+++ b/
misc/e2freefrag.c
@@
-397,6
+397,9
@@
int main(int argc, char *argv[])
fprintf(stderr, "%s: bad chunk size '%s'\n",
progname, optarg);
usage(progname);
+#ifdef DEBUFS
+ return;
+#endif
}
if (chunk_info.chunkbytes &
(chunk_info.chunkbytes - 1)) {
@@
-409,6
+412,9
@@
int main(int argc, char *argv[])
case 'h':
default:
usage(progname);
+#ifdef DEBUGFS
+ return;
+#endif
break;
}
}
@@
-417,6
+423,9
@@
int main(int argc, char *argv[])
if (optind == argc) {
fprintf(stderr, "%s: missing device name.\n", progname);
usage(progname);
+#ifdef DEBUGFS
+ return;
+#endif
}
device_name = argv[optind];