fibmap: new command
PATCH 2/3 fibmap: new command
From: Davidlohr Bueso <[email protected]>
This program gets file/filesystem fragmentation information and block layout by using the fibmap ioctl. This allows it to be fs and block size independent.
It provides per-file information about holes and can map block for files up to 4Tb. Additionally, an overall view of how fragmented partitions are can also be obtained with statistics.
--- sys-utils/.gitignore | 1 + sys-utils/Makefile.am | 6 + sys-utils/fibmap.c | 603 +++++++++++++++++++++++++++++++++++++++++++++++++ 3 files changed, 610 insertions(+), 0 deletions(-) create mode 100644 sys-utils/fibmap.c
sys-utils/.gitignore +1 -0
@@ -3,6 +3,7 @@ ctrlaltdel cytune dmesg fallocate +fibmap flock fsfreeze fstrim
sys-utils/Makefile.am +6 -0
@@ -3,6 +3,7 @@ include $(top_srcdir)/config/include-Makefile.am bin_PROGRAMS = sbin_PROGRAMS = usrbin_exec_PROGRAMS = \ + fibmap \ flock \ ipcmk \ ipcrm \
@@ -12,6 +13,7 @@ usrbin_exec_PROGRAMS = \ usrsbin_exec_PROGRAMS = readprofile dist_man_MANS = \ + fibmap.8 \ flock.1 \ ipcmk.1 \ ipcrm.1 \
@@ -166,6 +168,10 @@ ipcmk_SOURCES = ipcmk.c $(top_srcdir)/lib/strutils.c ipcrm_SOURCES = ipcrm.c $(top_srcdir)/lib/strutils.c flock_SOURCES = flock.c $(top_srcdir)/lib/strutils.c ldattach_SOURCES = ldattach.c $(top_srcdir)/lib/strutils.c +fibmap_SOURCES = fibmap.c $(top_srcdir)/lib/strutils.c \ + $(top_srcdir)/lib/mbsalign.c \ + $(top_srcdir)/lib/tt.c \ + $(top_srcdir)/lib/pager.c if BUILD_MOUNTPOINT bin_PROGRAMS += mountpoint
sys-utils/fibmap.c new file +603 -0
603 lines not on this page · raw message
Signature · 1 line
1.7.4.1