linux-btrfs.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Questions about FIEMAP
@ 2015-10-12  4:37 Wang, Zhiye
  2015-10-12  6:01 ` Duncan
                   ` (3 more replies)
  0 siblings, 4 replies; 7+ messages in thread
From: Wang, Zhiye @ 2015-10-12  4:37 UTC (permalink / raw)
  To: linux-btrfs@vger.kernel.org

Hello everyone,

After googled a bit, I got information that btrfs supports FIEMAP (as "cp" needs it), but it's not valid for "write" operation.

I guess we cannot write to block device directly after get block list using FIEMAP. This is because:

1. COW feature of btrfs (but this can be disabled using NOCOW)
2. File system rebalance
3. Defragmentation

Aren't item #2 and #3 also a problem for "read" operation? For example, after "cp" get block list using FIEMAP, file system rebalance occurs, So, previous result of FIEMAP is not valid anymore.

Or maybe I misunderstood something. Please correct me.



Thanks
Mike

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

end of thread, other threads:[~2015-10-28 12:36 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-10-12  4:37 Questions about FIEMAP Wang, Zhiye
2015-10-12  6:01 ` Duncan
2015-10-12  8:10 ` Hugo Mills
2015-10-12 13:04 ` David Sterba
2015-10-12 13:27 ` Eric Sandeen
2015-10-28  9:57   ` Wang, Zhiye
2015-10-28 12:36     ` Duncan

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).