[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

stat for block device files

From: OKUJI Yoshinori
Subject: stat for block device files
Date: Sat, 30 Sep 2000 10:48:00 +0900

  Does stat return a correct size even for a block device file
(i.e. a file "settrans"ed with storeio) on GNU/Hurd? I'm not sure,
since I have no GNU/Hurd machine at hand for now. If yes, I think the
grub shell can get correct geometries even on Hurd, with code like

stat("/dev/hd0", &st);
total_sectors = st.st_size >> 9;


reply via email to

[Prev in Thread] Current Thread [Next in Thread]