]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
block: partition: msdos: provide UUIDs for partitions
authorStephen Warren <swarren@nvidia.com>
Fri, 12 Oct 2012 04:22:54 +0000 (15:22 +1100)
committerStephen Rothwell <sfr@canb.auug.org.au>
Mon, 22 Oct 2012 04:01:06 +0000 (15:01 +1100)
commit86ed348ea283bdfe3c7f7d8ee8cd694b2d36a258
treec8c9c8f5539df8b34a1a9985529aad29b997810b
parent00396232859edf45546e2ecbe500440b2bd9612f
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