2005-03-28 Yoshinori K. Okuji <okuji@enbug.org>

* lib/device.c (get_drive_geometry): Use ST.ST_SIZE instead of
  ST.ST_BLOCKS to get the total number of sectors, because st_blocks
  is not the same if it is a sparse file.
This commit is contained in:
okuji 2005-03-27 23:20:09 +00:00
parent 2b7a7354d9
commit 6884fee4be
2 changed files with 9 additions and 3 deletions

View file

@ -1,3 +1,9 @@
2005-03-28 Yoshinori K. Okuji <okuji@enbug.org>
* lib/device.c (get_drive_geometry): Use ST.ST_SIZE instead of
ST.ST_BLOCKS to get the total number of sectors, because st_blocks
is not the same if it is a sparse file.
2005-03-19 Yoshinori K. Okuji <okuji@enbug.org>
* stage2/stage2.c (cmain): Initialize DEFAULT_FILE to an empty