"du" in C
Florian Lohoff
flo at rfc822.org
Fri Jul 12 14:56:02 CEST 2002
On Thu, Jul 11, 2002 at 07:40:01PM +0200, Kai Windmöller wrote:
> Ich rate mal:
> st_blocks liefert Festplattenblöcke -> Festplattenblock = 512 Byte
> 512 Byte x 8 = 4096 Byte
>
> ist diese rechung auch noch richtig für deine 'anderen' Faktoren?
Festplatte ist dabei falsch - CDs und MOs haben teilweise 2048
byte bloecke. Wie funktioniert das dann ? Man bekommt die blockgroesse
des filesystems auch raus via ioctl(FIGETBSZ) auf den filedescriptor.
ggfs. ist das allerdings root only.
Flo
--
Florian Lohoff flo at rfc822.org +49-5201-669912
Heisenberg may have been here.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 232 bytes
Desc: not available
URL: <http://lug-owl.de/pipermail/linux/attachments/20020712/58c11496/attachment.sig>
More information about the Linux
mailing list