]> git.karo-electronics.de Git - karo-tx-linux.git/commit
block: store partition_meta_info.uuid as a string
authorStephen Warren <swarren@nvidia.com>
Fri, 28 Sep 2012 00:18:59 +0000 (10:18 +1000)
committerStephen Rothwell <sfr@canb.auug.org.au>
Mon, 8 Oct 2012 02:59:49 +0000 (13:59 +1100)
commitf689a388c486f0eecbc9d2a03998f99e090c5b0c
tree64518a0499f2fee0745391315d4c62deb0c17cc5
parent0820080125d8f8e6dc2c7dc4b2f582ff81bbe892
block: store partition_meta_info.uuid as a string

This will allow other types of UUID to be stored here, aside from true
UUIDs.  This also simplifies code that uses this field, since it's usually
constructed from a, used as a, or compared to other, strings.

Note: A simplistic approach here would be to set uuid_str[36]=0 whenever a
/PARTNROFF option was found to be present.  However, this modifies the
input string, and causes subsequent calls to devt_from_partuuid() not to
see the /PARTNROFF option, which causes different results.  In order to
avoid misleading future maintainers, this parameter is marked const.

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/genhd.c
block/partitions/efi.c
include/linux/genhd.h
init/do_mounts.c