Re: Q on ioctl BLKGETSIZE

2014-03-18 Thread tytso
On Tue, Mar 18, 2014 at 01:17:25PM +0100, Ulrich Windl wrote: > > Three questions: > 1) Shouldn't the manual page says that the sector size of always 512 Bytes, > even on new disks with larger sectors? > 2) Should the real sector size be used for new disks? The HDD industry is using 512 byte log

Q on ioctl BLKGETSIZE

2014-03-18 Thread Ulrich Windl
Hi! I'm wondering (on a x86_64 SLES11 system): "man 4 sd" says: --- BLKGETSIZE Returns the device size in sectors. The ioctl(2) parameter should be a pointer to a long. --- /usr/src/linux/block/ioctl.c (3.0.101-0.15) reads: --- case BLKGETSIZE: