Making FIEMAP and delayed allocation play well together
Making FIEMAP and delayed allocation play well together
Posted Feb 24, 2011 21:20 UTC (Thu) by dougg (guest, #1894)Parent article: Making FIEMAP and delayed allocation play well together
Anyway I have a different angle. Will FIEMAP work when a file is opened O_DIRECT? What about when the file is a partition or a disk (with or without O_DIRECT)? When a SCSI disk is opened O_DIRECT the FIEMAP ioctl could map through to the SCSI GET LBA STATUS command. Most likely I'm just dreaming.
Posted Feb 24, 2011 21:26 UTC (Thu)
by corbet (editor, #1)
[Link] (3 responses)
Posted Feb 24, 2011 21:57 UTC (Thu)
by razb (guest, #43424)
[Link] (1 responses)
Posted Feb 25, 2011 16:32 UTC (Fri)
by nix (subscriber, #2304)
[Link]
Posted Feb 24, 2011 22:19 UTC (Thu)
by dougg (guest, #1894)
[Link]
An extent is a group of blocks in a file laid out contiguously on disk by the filesystem. It's a filesystem concept, which is what is needed to answer your questions. O_DIRECT shouldn't change anything. If your file descriptor is for a partition or a block device, there's no filesystem, so FIEMAP will make no sense. And FIEMAP cannot possibly map to a low-level SCSI operation, since there is no filesystem knowledge at that level.
Making FIEMAP and delayed allocation play well together
Making FIEMAP and delayed allocation play well together
Making FIEMAP and delayed allocation play well together
Making FIEMAP and delayed allocation play well together