linux-xfs.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* filefrag and reflink
@ 2018-07-18 18:41 Chris Murphy
  2018-07-18 19:59 ` Darrick J. Wong
  0 siblings, 1 reply; 9+ messages in thread
From: Chris Murphy @ 2018-07-18 18:41 UTC (permalink / raw)
  To: xfs list

xfsprogs 4.17.0 mkfs with reflink=1
kernel 4.17.6

$ fallocate -l 1g tmp2
$ cp --reflink tmp2 tmp3
$ filefrag -v *
Filesystem type is: 58465342
File size of tmp2 is 1073741824 (262144 blocks of 4096 bytes)
 ext:     logical_offset:        physical_offset: length:   expected: flags:
   0:        0..  130136:         24..    130160: 130137:             unwritten
   1:   130137..  260280:     131082..    261225: 130144:     130161: unwritten
   2:   260281..  262143:     264714..    266576:   1863:     261226:
last,unwritten,eof
tmp2: 3 extents found
File size of tmp3 is 1073741824 (262144 blocks of 4096 bytes)
tmp3: 0 extents found
[chris@f28s xfs]$


Is this expected? When I do it on Btrfs, I see identical information
for the two files after reflink copy, with flags "unwritten,shared".

Regular files behave as expected, I'm only seeing this on reflink
copies of fallocated files.




-- 
Chris Murphy

^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2018-07-19 15:23 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-07-18 18:41 filefrag and reflink Chris Murphy
2018-07-18 19:59 ` Darrick J. Wong
2018-07-18 20:27   ` Eric Sandeen
2018-07-18 20:47     ` Darrick J. Wong
2018-07-18 21:07       ` Eric Sandeen
2018-07-19  0:09         ` Darrick J. Wong
2018-07-19 11:45       ` Carlos Maiolino
2018-07-19 11:34     ` Carlos Maiolino
2018-07-19 14:39       ` Darrick J. Wong

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).