linux/fs/partitions
Cesar Eduardo Barros cc9106247d fs/partitions: use ADDPART_FLAG_RAID instead of magic number
ADDPART_FLAG_RAID was introduced in commit d18d768, and most places were
converted to use it instead of a hardcoded value. However, some places seem
to have been missed.

Change all of them to the symbolic names via the following semantic patch:

@@
struct parsed_partitions *state;
expression E;
@@
(
- state->parts[E].flags = 1
+ state->parts[E].flags = ADDPART_FLAG_RAID
|
- state->parts[E].flags |= 1
+ state->parts[E].flags |= ADDPART_FLAG_RAID
|
- state->parts[E].flags = 2
+ state->parts[E].flags = ADDPART_FLAG_WHOLEDISK
|
- state->parts[E].flags |= 2
+ state->parts[E].flags |= ADDPART_FLAG_WHOLEDISK
)

Signed-off-by: Cesar Eduardo Barros <cesarb@cesarb.net>
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
2010-05-21 18:31:21 -04:00
..
acorn.c fs/partitions/acorn.c: remove dead code 2008-10-16 11:21:47 -07:00
acorn.h
amiga.c [PATCH] Fix check_partition routines 2006-12-07 08:39:30 -08:00
amiga.h
atari.c [PATCH] Fix check_partition routines 2006-12-07 08:39:30 -08:00
atari.h
check.c include cleanup: Update gfp.h and slab.h includes to prepare for breaking implicit slab.h inclusion from percpu.h 2010-03-30 22:02:32 +09:00
check.h block: replace @ext_minors with GENHD_FL_EXT_DEVT 2008-10-09 08:56:08 +02:00
efi.c fs/partitions: use ADDPART_FLAG_RAID instead of magic number 2010-05-21 18:31:21 -04:00
efi.h partitions: read whole sector with EFI GPT header 2009-11-23 09:29:58 +01:00
ibm.c block: Do away with the notion of hardsect_size 2009-05-22 23:22:54 +02:00
ibm.h
karma.c
karma.h
Kconfig partition: use DEFAULT_SGI_PARTITION for SGI_PARTION default 2008-02-06 10:41:08 -08:00
ldm.c fs: ldm.[ch] use get_unaligned_* helpers 2008-07-25 10:53:26 -07:00
ldm.h fs: ldm.[ch] use get_unaligned_* helpers 2008-07-25 10:53:26 -07:00
mac.c fs/partitions: use ADDPART_FLAG_RAID instead of magic number 2010-05-21 18:31:21 -04:00
mac.h
Makefile partition: add support for sysv68 partitions 2007-05-08 11:15:09 -07:00
msdos.c fs/partitions: use ADDPART_FLAG_RAID instead of magic number 2010-05-21 18:31:21 -04:00
msdos.h
osf.c
osf.h
sgi.c [PARTITION]: Add whole_disk attribute. 2007-02-10 23:50:00 -08:00
sgi.h
sun.c fs/partitions/sun.c endianness annotations 2007-10-14 12:41:51 -07:00
sun.h [PARTITION]: Sun/Solaris VTOC table corrections 2007-07-30 00:27:31 -07:00
sysv68.c partition: add support for sysv68 partitions 2007-05-08 11:15:09 -07:00
sysv68.h partition: add support for sysv68 partitions 2007-05-08 11:15:09 -07:00
ultrix.c
ultrix.h