[Ocfs2-tools-devel] [PATCH v3 0/1] Add a new tool 'defrag.ocfs2'

Larry Chen lchen at suse.com
Mon Oct 22 01:25:46 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.

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, these  patches has already been reorganized
2. Some extra comments has been added to patch summary.

Larry Chen (1):
  Add a new tool 'defrag.ocfs2'

 CREDITS                            |   3 +
 Makefile                           |   2 +-
 configure.in                       |   1 +
 defragfs.ocfs2/Makefile            |  40 ++
 defragfs.ocfs2/defragfs.ocfs2.8.in |  76 ++++
 defragfs.ocfs2/include/libdefrag.h |  36 ++
 defragfs.ocfs2/include/o2defrag.h  |  40 ++
 defragfs.ocfs2/include/record.h    |  53 +++
 defragfs.ocfs2/libdefrag.c         | 126 +++++++
 defragfs.ocfs2/main.c              | 735 +++++++++++++++++++++++++++++++++++++
 defragfs.ocfs2/record.c            | 262 +++++++++++++
 11 files changed, 1373 insertions(+), 1 deletion(-)
 create mode 100644 defragfs.ocfs2/Makefile
 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