]> git.karo-electronics.de Git - karo-tx-linux.git/commit
block: partition: msdos: provide UUIDs for partitions
authorStephen Warren <swarren@nvidia.com>
Fri, 28 Sep 2012 00:19:00 +0000 (10:19 +1000)
committerStephen Rothwell <sfr@canb.auug.org.au>
Thu, 4 Oct 2012 05:03:07 +0000 (15:03 +1000)
commit68a029844da3841d61d1296ade3fd9374b6ec2ef
tree329aa1846d4e03265b7f0fa5bdabf37a1a23973d
parent46ec3004b8b744124497318c56ceb204b55511fc
block: partition: msdos: provide UUIDs for partitions

The MSDOS/MBR partition table includes a 32-bit unique ID, often referred
to as the NT disk signature.  When combined with a partition number within
the table, this can form a unique ID similar in concept to EFI/GPT's
partition UUID.  Constructing and recording this value in struct
partition_meta_info allows MSDOS partitions to be referred to on the
kernel command-line using the following syntax:

root=PARTUUID=0002dd75-01

Signed-off-by: Stephen Warren <swarren@nvidia.com>
Cc: Jens Axboe <axboe@kernel.dk>
Cc: Tejun Heo <tj@kernel.org>
Cc: Will Drewry <wad@chromium.org>
Cc: Kay Sievers <kay.sievers@vrfy.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
block/partitions/msdos.c
init/do_mounts.c