summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/blkdev.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/blkdev.c b/lib/blkdev.c
index 7c6c7bab..1ca4548b 100644
--- a/lib/blkdev.c
+++ b/lib/blkdev.c
@@ -85,7 +85,11 @@ blkdev_get_sectors(int fd, unsigned long long *sectors)
return -1;
}
-/* get hardware sector size */
+/* get logical sector size (default is 512)
+ *
+ * This is the smallest unit the storage device can
+ * address. It is typically 512 bytes.
+ */
int
blkdev_get_sector_size(int fd, int *sector_size)
{