]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
block: partition: msdos: provide UUIDs for partitions
authorStephen Warren <swarren@nvidia.com>
Wed, 26 Sep 2012 01:33:07 +0000 (11:33 +1000)
committerStephen Rothwell <sfr@canb.auug.org.au>
Thu, 27 Sep 2012 07:25:26 +0000 (17:25 +1000)
commitd173e160e7f54de030f8f558c42ec35d6433821b
tree53ca5e02500f6745b1555920cf13e4bf48bdd6e8
parent928921ac635cf2ccceca0267c1279532df14cac3
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