Skip to content

Commit 97b7a94

Browse files
committed
Add clarifications to the e4defrag and resize2fs man pages
Addresses-Debian-Bug: #761144 Addresses-Debian-Bug: #770750 Signed-off-by: Theodore Ts'o <tytso@mit.edu> by 1 commit.
1 parent 50a6f4a commit 97b7a94

File tree

2 files changed

+17
-2
lines changed

2 files changed

+17
-2
lines changed

misc/e4defrag.8.in

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,16 @@ is a device or a mount point,
6666
.B e4defrag
6767
doesn't defragment files in mount point of other device.
6868
.PP
69+
It safe to run e4defrag on a file while it is actively in use by another
70+
application. Since the contents of file blocks are copied using the
71+
page cache, this can result in a performance slowdown to both e4defrag
72+
and the application due to contention over the system's memory and disk
73+
bandwidth.
74+
.PP
75+
If the file system's free space is fragmented, or if there is
76+
insufficient free space available, e4defrag may not be able
77+
to improve the file's fragmentation.
78+
.PP
6979
Non-privileged users can execute
7080
.B e4defrag
7181
to their own file, but the score is not printed if

resize/resize2fs.8.in

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,8 @@ really useful for doing
133133
time trials.
134134
.TP
135135
.B \-M
136-
Shrink the filesystem to the minimum size.
136+
Shrink the file system to minimize its size as much as possible,
137+
given the files stored in the file system.
137138
.TP
138139
.B \-p
139140
Prints out a percentage completion bars for each
@@ -142,7 +143,11 @@ operation during an offline resize, so that the user can keep track
142143
of what the program is doing.
143144
.TP
144145
.B \-P
145-
Print the minimum size of the filesystem and exit.
146+
Print an extimate of the number of file system blocks in the file system
147+
if it is shrunk using
148+
.BR resize2fs 's
149+
.B \-M
150+
option and then exit.
146151
.TP
147152
.B \-s
148153
Turns off the 64bit feature and frees blocks that are no longer in use.

0 commit comments

Comments
 (0)