diff options
author | Fabio Massimo Di Nitto <fabbione@ubuntu.com> | 2007-02-10 23:50:00 -0800 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2007-02-10 23:50:00 -0800 |
commit | d18d7682c18b617f523df6beea5ea0bd396ed0bd (patch) | |
tree | 8e005fee2e13134e9ebdd1a3b71ef72b84351b19 /fs/partitions/sgi.c | |
parent | 66efc5a7e3061c3597ac43a8bb1026488d57e66b (diff) | |
download | op-kernel-dev-d18d7682c18b617f523df6beea5ea0bd396ed0bd.zip op-kernel-dev-d18d7682c18b617f523df6beea5ea0bd396ed0bd.tar.gz |
[PARTITION]: Add whole_disk attribute.
Some partitioning systems create special partitions that
span the entire disk. One example are Sun partitions, and
this whole-disk partition exists to tell the firmware the
extent of the entire device so it can load the boot block
and do other things.
Such partitions should not be treated as normal partitions,
because all the other partitions overlap this whole-disk one.
So we'd see multiple instances of the same UUID etc. which
we do not want. udev and friends can thus search for this
'whole_disk' attribute and use it to decide to ignore the
partition.
Signed-off-by: Fabio Massimo Di Nitto <fabbione@ubuntu.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'fs/partitions/sgi.c')
-rw-r--r-- | fs/partitions/sgi.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/partitions/sgi.c b/fs/partitions/sgi.c index 6fa4ff8..ed5ac83 100644 --- a/fs/partitions/sgi.c +++ b/fs/partitions/sgi.c @@ -72,7 +72,7 @@ int sgi_partition(struct parsed_partitions *state, struct block_device *bdev) if (blocks) { put_partition(state, slot, start, blocks); if (be32_to_cpu(p->type) == LINUX_RAID_PARTITION) - state->parts[slot].flags = 1; + state->parts[slot].flags = ADDPART_FLAG_RAID; } slot++; } |