]> git.karo-electronics.de Git - karo-tx-linux.git/commit
block: store partition_meta_info.uuid as a string
authorStephen Warren <swarren@nvidia.com>
Thu, 25 Oct 2012 01:14:44 +0000 (12:14 +1100)
committerStephen Rothwell <sfr@canb.auug.org.au>
Tue, 30 Oct 2012 04:15:09 +0000 (15:15 +1100)
commit6d05e5ad21edabb72d7ea3f4458dbb25e46c1dd5
tree92b12767d4b4f93ef4029a71b2d12edaa0cb3bb3
parenta6038c14503ad1085935a288ade212b4fd7d203a
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