Re: [Qemu-devel] Querying the size of devdax devices from userspace

2019-02-07 Thread Stefan Hajnoczi
On Mon, Feb 04, 2019 at 12:06:32AM -0800, Dan Williams wrote: > On Sun, Feb 3, 2019 at 11:56 PM Stefan Hajnoczi wrote: > > > > How can userspace applications query the size of devdax character > > devices? > > > > stat(1) doesn't know how large the device is: > > > > # stat /dev/dax0.0 > > F

Re: [Qemu-devel] Querying the size of devdax devices from userspace

2019-02-04 Thread Dan Williams
On Sun, Feb 3, 2019 at 11:56 PM Stefan Hajnoczi wrote: > > How can userspace applications query the size of devdax character > devices? > > stat(1) doesn't know how large the device is: > > # stat /dev/dax0.0 > File: /dev/dax0.0 > Size: 0 Blocks: 0 IO Block: 4096 c

[Qemu-devel] Querying the size of devdax devices from userspace

2019-02-03 Thread Stefan Hajnoczi
How can userspace applications query the size of devdax character devices? stat(1) doesn't know how large the device is: # stat /dev/dax0.0 File: /dev/dax0.0 Size: 0 Blocks: 0 IO Block: 4096 character special file Device: 6h/6d Inode: 56764 Links: 1 D