mirror of
https://git.savannah.gnu.org/git/grub.git
synced 2026-10-24 08:09:22 +00:00
disk: Rename grub_disk_get_size() to grub_disk_native_sectors()
The function grub_disk_get_size() is confusingly named because it actually returns a sector count where the sectors are sized in the GRUB native sector size. Rename to something more appropriate. Suggested-by: Daniel Kiper <daniel.kiper@oracle.com> Signed-off-by: Glenn Washburn <development@efficientek.com> Reviewed-by: Patrick Steinhardt <ps@pks.im> Reviewed-by: Daniel Kiper <daniel.kiper@oracle.com>
This commit is contained in:
1 parent
85307c34e8
commit
880dfd8f40
19 files changed
+38
-38
No files matched your search
@@ -753,7 +753,7 @@ grub_nilfs2_load_sb (struct grub_nilfs2_data *data)
|
||||
partition_size = (grub_le_to_cpu64 (data->sblock.s_dev_size)
|
||||
>> GRUB_DISK_SECTOR_BITS);
|
||||
else
|
||||
partition_size = grub_disk_get_size (disk);
|
||||
partition_size = grub_disk_native_sectors (disk);
|
||||
if (partition_size != GRUB_DISK_SIZE_UNKNOWN)
|
||||
{
|
||||
/* Read second super block. */
|
||||
|
||||
Reference in new issue
Block a user