Too bad the DataEditor did not report the correct size for devices... :)

git-svn-id: file:///srv/svn/repos/haiku/trunk/current@6624 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Axel Dörfler 2004-02-18 04:20:44 +00:00
parent 5475e6e54c
commit 15fef5f790

View File

@ -215,7 +215,8 @@ DataEditor::SetTo(BEntry &entry, const char *attribute)
}
close(device);
fSize = geometry.head_count * geometry.cylinder_count * geometry.sectors_per_track;
fSize = 1LL * geometry.head_count * geometry.cylinder_count
* geometry.sectors_per_track * geometry.bytes_per_sector;
fBlockSize = geometry.bytes_per_sector;
} else if (IsAttribute()) {
// ToDo: add support for attributes!