]> 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, 9 Nov 2012 00:12:25 +0000 (16:12 -0800)
committerJens Axboe <axboe@kernel.dk>
Fri, 9 Nov 2012 07:30:43 +0000 (08:30 +0100)
commit31f987f1dd7b3b801f002eeda2e1516b80b10a3b
treeb1d521be80204be22494784452e4502b2e141f99
parent4050db86416788cb620622f8b228880ac9719c94
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: 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/genhd.c
block/partitions/efi.c
include/linux/genhd.h
init/do_mounts.c