Skip to content

Instantly share code, notes, and snippets.

@theHilikus
Last active December 18, 2016 23:13
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save theHilikus/5fd0e38fd72fbcc97ae45ced703b0b47 to your computer and use it in GitHub Desktop.
Save theHilikus/5fd0e38fd72fbcc97ae45ced703b0b47 to your computer and use it in GitHub Desktop.
filefrag

Two different files have the same values

# filefrag -v first-snap/etc/passwd
Filesystem type is: 9123683e
File size of first-snap/etc/passwd is 1866 (1 block of 4096 bytes)
 ext:     logical_offset:        physical_offset: length:   expected: flags:
   0:        0..    4095:          0..      4095:   4096:             last,not_aligned,inline,eof
first-snap/etc/passwd: 1 extent found

# filefrag -v first-snap/etc/group
Filesystem type is: 9123683e
File size of first-snap/etc/group is 927 (1 block of 4096 bytes)
 ext:     logical_offset:        physical_offset: length:   expected: flags:
   0:        0..    4095:          0..      4095:   4096:             last,not_aligned,inline,eof
first-snap/etc/group: 1 extent found

Two reflinked files have both "inline" flag

# cp --reflink=always first-snap/etc/passwd .

# filefrag -v passwd first-snap/etc/passwd
Filesystem type is: 9123683e
File size of passwd is 1866 (1 block of 4096 bytes)
 ext:     logical_offset:        physical_offset: length:   expected: flags:
   0:        0..    4095:          0..      4095:   4096:             last,not_aligned,inline,eof
passwd: 1 extent found
Filesystem type is: 9123683e
File size of first-snap/etc/passwd is 1866 (1 block of 4096 bytes)
 ext:     logical_offset:        physical_offset: length:   expected: flags:
   0:        0..    4095:          0..      4095:   4096:             last,not_aligned,inline,eof
first-snap/etc/passwd: 1 extent found
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment