]> git.karo-electronics.de Git - karo-tx-linux.git/commit
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, 9 Nov 2012 07:30:43 +0000 (08:30 +0100)
commit6e526a02c1240844719b8ea4405fcbc9246c0222
tree4527482963ed192ee4e6b248081958e6db280a1e
parentb499c969ac3647c7f453ddf1cb7f08f918a35f48
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