Mail Archives: djgpp-workers/2003/01/01/09:32:13
According to Charles Sandmann:
> I am more worried about compatibility and correct values than showing
> some DOS specific sector size. Don't all unix-like OSes use 512 or 1024
> for block sizes? Do they assume they are the same for all disks? Do
> all of our calls (from stat, fstat, statvfs, etc) return the same value?
If you're talking about harware block sizes, yes. Plus 2048 for
cdroms. What choice would the OSes have?
If you're talking about file system block size, no. 4096 seem to be
relatively common. But as you choose the block size when you create
the file system there are no set block size. (I'm mainly thinking of
ext2 here, but other ones should be similar.) Then I wouldn't be
surprised of there is a file system or two that have a variable block
size; there're all sorts out there.
Or perhaps you're talking about yet another block size?
Right,
MartinS
- Raw text -