From: Akira Fujita <a-fujita@rs.jp.nec.com>
To: Theodore Tso <tytso@mit.edu>, linux-ext4@vger.kernel.org
Cc: linux-fsdevel@vger.kernel.org
Subject: [RFC][PATCH 3/3] Manpage of ext4 online defrag command
Date: Fri, 22 May 2009 16:07:03 +0900 [thread overview]
Message-ID: <4A164F17.108@rs.jp.nec.com> (raw)
ext4: online defrag -- Ext4 online defrag command manpage
From: Akira Fujita <a-fujita@rs.jp.nec.com>
Following is e4defrag command manpage.
Please use `nroff -man e4defrag.8 | less` to view.
Signed-off-by: Kazuya Mio <k-mio@sx.jp.nec.com>
Signed-off-by: Akira Fujita <a-fujita@rs.jp.nec.com>
---
.TH E4DEFRAG 8 "May 2009" "e4defrag version 2.0"
.SH NAME
e4defrag \- online defragmenter for ext4 filesystem
.SH SYNOPSIS
.B e4defrag
[
.B \-c
]
[
.B \-v
]
.I target
\&...
.SH DESCRIPTION
.B e4defrag
reduces fragmentation of extent based file. The file targeted by
.B e4defrag
is created on ext4 filesystem made with "-O extent" option (see
.BR mke2fs (8)).
The targeted file gets more contiguous blocks and improves the file access
speed.
.PP
.I target
is a regular file, a directory, or a device that is mounted as ext4 filesystem.
If
.I target
is a directory,
.B e4defrag
reduces fragmentation of all files in it. If
.I target
is a device,
.B e4defrag
gets the mount point of it and reduces fragmentation of all files in this mount
point.
.SH OPTIONS
.TP
.B \-c
Get the fragmentation count and calculate fragmentation score based on it
before and after defrag. By seeing this score, we can determine whether we
should execute
.B e4defrag
to
.IR target .
When used with
.B \-v
option, the fragmentation count before and after defrag is printed for each
file.
.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.
.SH NOTES
.B e4defrag
does not support swap file, files in lost+found directory, and files allocated
in indirect blocks. When
.I target
is a device or a mount point,
.B e4defrag
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.
.SH AUTHOR
Written by Akira Fujita <a-fujita@rs.jp.nec.com> and Takashi Sato
<t-sato@yk.jp.nec.com>.
.SH SEE ALSO
.BR mke2fs (8),
.BR mount (8).
reply other threads:[~2009-05-22 7:07 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4A164F17.108@rs.jp.nec.com \
--to=a-fujita@rs.jp.nec.com \
--cc=linux-ext4@vger.kernel.org \
--cc=linux-fsdevel@vger.kernel.org \
--cc=tytso@mit.edu \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).