Re: Correct parameter size for BLKSSZGET ioctl.

2013-11-24 Thread Rob Landley
On 11/03/2013 01:43:14 PM, Theodore Ts'o wrote: On Sun, Nov 03, 2013 at 02:07:56PM -0500, Jason Cipriani wrote: > > There was a bigger question hidden behind the context there that I'm > still wondering about: Are these ioctl interfaces specified and > documented somewhere? From what I've seen, a

Re: Correct parameter size for BLKSSZGET ioctl.

2013-11-03 Thread Theodore Ts'o
On Sun, Nov 03, 2013 at 02:07:56PM -0500, Jason Cipriani wrote: > > There was a bigger question hidden behind the context there that I'm > still wondering about: Are these ioctl interfaces specified and > documented somewhere? From what I've seen, and from your response, the > implication is that

Re: Correct parameter size for BLKSSZGET ioctl.

2013-11-03 Thread Jason Cipriani
On Sat, Nov 2, 2013 at 7:44 PM, Theodore Ts'o wrote: > > On Fri, Nov 01, 2013 at 08:29:26PM -0400, Jason Cipriani wrote: > > In blkdiscard in util-linux, at least since version 2.23, the > > following code is used to retrieve a device's physical sector size: > > > > uint64_t secsize; > > ioctl

Re: Correct parameter size for BLKSSZGET ioctl.

2013-11-02 Thread Theodore Ts'o
On Fri, Nov 01, 2013 at 08:29:26PM -0400, Jason Cipriani wrote: > In blkdiscard in util-linux, at least since version 2.23, the > following code is used to retrieve a device's physical sector size: > > uint64_t secsize; > ioctl(fd, BLKSSZGET, &secsize); > > On my machine (Ubuntu 12.04 -- 3.2.

Correct parameter size for BLKSSZGET ioctl.

2013-11-01 Thread Jason Cipriani
In blkdiscard in util-linux, at least since version 2.23, the following code is used to retrieve a device's physical sector size: uint64_t secsize; ioctl(fd, BLKSSZGET, &secsize); On my machine (Ubuntu 12.04 -- 3.2.0-55-generic-pae #85-Ubuntu SMP Wed Oct 2 14:03:15 UTC 2013 i686 i686 i386 GNU