summaryrefslogtreecommitdiffstats
path: root/daemon
diff options
context:
space:
mode:
authorRichard W.M. Jones <rjones@redhat.com>2012-05-14 17:47:57 +0100
committerRichard W.M. Jones <rjones@redhat.com>2012-05-14 17:47:57 +0100
commit2fd2c85f6a42575749b9d38bd2f1512ae25db760 (patch)
tree8e03a3a9528aa0902783eb2dcfe3ec930b47e13a /daemon
parente8ec521dc64208016b0dc8dcb873324819ed734d (diff)
downloadlibguestfs-2fd2c85f6a42575749b9d38bd2f1512ae25db760.tar.gz
libguestfs-2fd2c85f6a42575749b9d38bd2f1512ae25db760.tar.xz
libguestfs-2fd2c85f6a42575749b9d38bd2f1512ae25db760.zip
doc: Add notes on how GPT works on 4k sector disks.
I used scsi_debug to create a 4k sector virtual disk: modprobe scsi_debug dev_size_mb=128 sector_size=4096 I then used 'gdisk' to create lots of partitions, and used 'hexdump' to examine what was written to disk.
Diffstat (limited to 'daemon')
-rw-r--r--daemon/parted.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/daemon/parted.c b/daemon/parted.c
index 26100422..1a020f9b 100644
--- a/daemon/parted.c
+++ b/daemon/parted.c
@@ -199,7 +199,9 @@ do_part_disk (const char *device, const char *parttype)
*
* - aligned operations are faster
* - absolute minimum recommended alignment is 64K (1M would be better)
- * - GPT requires at least 34 sectors at the end of the disk.
+ * - GPT requires at least 34 sectors* at the end of the disk.
+ *
+ * *=except for 4k sector disks, where only 6 sectors are required
*/
const char *startstr = "128s";
const char *endstr = "-128s";