block: partition: msdos: provide UUIDs for partitions
authorStephen Warren <swarren@nvidia.com>
Fri, 9 Nov 2012 00:12:28 +0000 (16:12 -0800)
committerJens Axboe <axboe@kernel.dk>
Fri, 23 Nov 2012 13:28:58 +0000 (14:28 +0100)
commitd33b98fc82b0908e91fb05ae081acaed7323f9d2
treefe5803ac8510ab46f0fcbcc1712343806699a5cb
parent283f8fc03927b0ef42a2faa60a0df5ec8c612edb
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: 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>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
block/partitions/msdos.c
init/do_mounts.c