]> 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>
Mon, 8 Oct 2012 02:59:49 +0000 (13:59 +1100)
commitdc1c8b4465ed3ab58cdf2b72d23ff178633fc45b
treee6b013634b6444c57b06b121dce5af7649efc3cb
parent516af6f2e73e556617f915fcd81069e272515ba7
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