lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-id: <884A55FB-CAF6-41A5-B134-A722CED2034F@sun.com>
Date:	Tue, 23 Feb 2010 15:53:19 -0700
From:	Andreas Dilger <adilger@....com>
To:	Andreas Dilger <adilger@....com>
Cc:	"Theodore Ts'o" <tytso@....edu>,
	ext4 development <linux-ext4@...r.kernel.org>
Subject: Re: [PATCH] improved filefrag output v2

Attached is a new patch to improve the filefrag output.  The most  
important part of the change is that it allows the "extent format"  
output to be used even if the filesystem does not support FIEMAP.   
This is useful for older kernels (i.e. most vendor kernels), or in  
case FIEMAP hasn't been wired into a filesystem yet.

The major change from v1 of the patch is that for FIBMAP files it  
considers logical file discontinuity as well as physical  
discontinuity.  This impacts only sparse files, but provides more  
accurate information in "extent" output format. The old filefrag  
output has not been changed (for compatibility, if that is a concern),  
though it now reports a different number of extents for sparse files.   
This could be changed fairly easily.


The extent format output is improved to be more similar to that of  
xfs_bmap, so it prints out a range of logical and physical block  
numbers in addition to the extent length, so that it is easier to see  
where the discontinuities are.  There is also an option to print out  
the extents/lengths in hex, and using a different blocksize (e.g. "- 
b1M" to print in units of 1MB):

$ filefrag -e -b1M "Indiana Jones And The Temple Of Doom.avi"
ext:     logical_offset:        physical_offset: length: flags:
   0:        0..       1:     320566..    320567:      1:
   1:        1..       3:     320866..    320868:      2:
   2:        3..       3:     320768..    320768:      0:
   3:        4..      29:     320870..    320895:     26:
   4:       30..     155:     320898..    321023:    126:
   5:      156..     281:     321026..    321151:    126:
   6:      282..     407:     321154..    321279:    126:
   7:      408..     533:     321282..    321407:    126:
   8:      534..     659:     321410..    321535:    126: eof

Also included is support for FIEMAP extensions to support multi-device  
filesystems (e.g. Lustre, ZFS, maybe btrfs in the future).

Cheers, Andreas
--
Andreas Dilger
Sr. Staff Engineer, Lustre Group
Sun Microsystems of Canada, Inc.

Download attachment "e2fsprogs-fiemap-lustre.patch" of type "application/octet-stream" (20674 bytes)

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ