Skip to contentSkip to conversation

e4defrag: Remove -c option which check the file fragments

PATCH RESEND Superseded Kazuya Mio 1 participant 1 message Jun 15, 2011

v1 of 3 Superseded Latest is v3 →

lore
Share & tools
lore

Kazuya Mio

author
#0 lore raw

PATCH RESEND 3/11 e4defrag: Remove -c option which check the file fragments

Remove -c option form e4defrag, because filefrag can output the fragmentation score.

---
 misc/e4defrag.8.in |   29 ---
 misc/e4defrag.c    |  408 +----------------------------------------------------
 2 files changed, 12 insertions(+), 425 deletions(-)
misc/e4defrag.8.in +2 -27
index 75e1bc9..81adc29 100644
@@ -1,12 +1,9 @@
-.TH E4DEFRAG 8 "May 2009" "e4defrag version 2.0"
+.TH E4DEFRAG 8 "Feb 2011" "e4defrag version 2.1"
 .SH NAME
 e4defrag \- online defragmenter for ext4 filesystem
 .SH SYNOPSIS
 .B e4defrag
 [
-.B \-c
-]
-[
 .B \-v
 ]
 .I target
@@ -34,26 +31,6 @@ gets the mount point of it and reduces fragmentation of all files in this mount
 point.
 .SH OPTIONS
 .TP
-.B \-c
-Get a current fragmentation count and an ideal fragmentation count, and
-calculate fragmentation score based on them. By seeing this score, we can
-determine whether we should execute
-.B e4defrag
-to
-.IR target .
-When used with
-.B \-v
-option, the current fragmentation count and the ideal fragmentation count are
-printed for each file.
-.IP
-Also this option outputs the average data size in one extent. If you see it,
-you'll find the file has ideal extents or not. Note that the maximum extent
-size is 131072KB in ext4 filesystem (if block size is 4KB).
-.IP
-If this option is specified,
-.I target
-is never defragmented.
-.TP
 .B \-v
 Print error messages and the fragmentation count before and after defrag for
 each file.
@@ -68,9 +45,7 @@ doesn't defragment files in mount point of other device.
 .PP
 Non-privileged users can execute
 .B e4defrag
-to their own file, but the score is not printed if
-.B \-c
-option is specified. Therefore, it is desirable to be executed by root user.
+to their own file.
 .SH AUTHOR
 Written by Akira Fujita <[email protected]> and Takashi Sato
 <[email protected]>.
misc/e4defrag.c +10 -397

511 lines not on this page · raw message