Hi Jon
Unfortunately, it did not work. Although /dev/sda2 is a 500 gb device,
statfvs(dev/sda2, out stat) and fstatvfs(fd, out stat) returned the following:
bavail=2560
bfree=2560
blocks=2560
bsize=4096
files=8262645
frsize=4096
On Jan 29, 2013, at 3:46 AM, Dragony csch...@rapidshare.com
On 31.01.2013 12:45, Christian Schmid wrote:
Hi Jon
Unfortunately, it did not work. Although /dev/sda2 is a 500 gb device,
statfvs(dev/sda2, out stat) and fstatvfs(fd, out stat) returned the following:
bavail=2560
bfree=2560
blocks=2560
bsize=4096
files=8262645
frsize=4096
Maybe the device
Yes, I need the details without mounting it. Right now I am doing this by
reading /sys/class/block/sda2/size, but that feels so... wrong.
I CAN get the size via FileStream.Length, but not with UnixStream.Length.
Since it has been implemented for FileStream, maybe UnixStream has been
forgotten.
Hi guys,
On Fri, Feb 1, 2013 at 12:41 AM, Robert Jordan robe...@gmx.net wrote:
On 31.01.2013 12:45, Christian Schmid wrote:
Hi Jon
Unfortunately, it did not work. Although /dev/sda2 is a 500 gb device,
statfvs(dev/sda2, out stat) and fstatvfs(fd, out stat) returned the
following:
Hi
I want to get the device size of /dev/sda. I have an open fd and a
UnixStream, but .Length always returns 0. Is there a POSIX call or something
else to get the device size?
Mono JIT compiler version 3.0.1 (Debian 3.0.1+dfsg-1~exp1~pre1)
--
View this message in context:
On Jan 29, 2013, at 3:46 AM, Dragony csch...@rapidshare.com wrote:
I want to get the device size of /dev/sda. I have an open fd and a UnixStream
Don't use UnixStream.Length here; UnixStream.Length uses the stat(2) system
call, which states:
http://linux.die.net/man/2/stat
The st_size field