[Ocfs2-tools-devel] [PATCH v2 0/1] defragfs.ocfs2: Implement ocfs2 defragmentation tool
Larry Chen
lchen at suse.com
Wed Oct 17 00:20:42 PDT 2018
So far, ocfs2 has no defragmentation tool, this set of patches intends to
implement the function.
The code is transplanted from ext4 defragmentation tool, and was
modified a lot to fit for ocfs2.
The basic work principle was call ioctl against some specified files or
files within a dir.
Besides, some new features was add.
1. optional low io mode by yielding cpu every period.
2. resume from last break.
Looking forward to your comments, thanks.
Change Log:
1. As Piaojun suggested, theses patches has already been reorganized
Larry Chen (1):
Ocfs2-tools: Add a new tool 'defragfs.ocfs2'
Makefile | 2 +-
configure.in | 1 +
defragfs.ocfs2/Makefile | 40 ++
defragfs.ocfs2/commit.sh | 4 +
defragfs.ocfs2/defragfs.ocfs2.8.in | 76 ++++
defragfs.ocfs2/include/libdefrag.h | 36 ++
defragfs.ocfs2/include/o2defrag.h | 40 ++
defragfs.ocfs2/include/record.h | 59 +++
defragfs.ocfs2/libdefrag.c | 126 +++++++
defragfs.ocfs2/main.c | 735 +++++++++++++++++++++++++++++++++++++
defragfs.ocfs2/record.c | 262 +++++++++++++
11 files changed, 1380 insertions(+), 1 deletion(-)
create mode 100644 defragfs.ocfs2/Makefile
create mode 100755 defragfs.ocfs2/commit.sh
create mode 100644 defragfs.ocfs2/defragfs.ocfs2.8.in
create mode 100644 defragfs.ocfs2/include/libdefrag.h
create mode 100644 defragfs.ocfs2/include/o2defrag.h
create mode 100644 defragfs.ocfs2/include/record.h
create mode 100644 defragfs.ocfs2/libdefrag.c
create mode 100644 defragfs.ocfs2/main.c
create mode 100644 defragfs.ocfs2/record.c
--
2.13.7
More information about the Ocfs2-tools-devel
mailing list