[Devel] [PATCH 4/6] ext4defrag2: add on/off forcelocal option
Dmitry Monakhov
dmonakhov at openvz.org
Mon May 16 04:53:34 PDT 2016
Signed-off-by: Dmitry Monakhov <dmonakhov at openvz.org>
---
misc/e4defrag2.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/misc/e4defrag2.c b/misc/e4defrag2.c
index 0ca7a63..771ee51 100644
--- a/misc/e4defrag2.c
+++ b/misc/e4defrag2.c
@@ -2516,7 +2516,7 @@ int main(int argc, char *argv[])
add_error_table(&et_ext2_error_table);
gettimeofday(&time_start, 0);
- while ((c = getopt(argc, argv, "a:C:c:d:fF:hlmnt:s:S:T:vq:")) != EOF) {
+ while ((c = getopt(argc, argv, "a:C:c:d:fF:hl:mnt:s:S:T:vq:")) != EOF) {
switch (c) {
case 'a':
min_frag_size = strtoul(optarg, &end, 0);
@@ -2572,7 +2572,7 @@ int main(int argc, char *argv[])
usage();
break;
case 'l':
- dfx.ief_force_local = 1;
+ dfx.ief_force_local = !!strtoul(optarg, &end, 0);
break;
case 'n':
--
1.7.1
More information about the Devel
mailing list