--add incorrectly sets writemostly
Origin: vendor, http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=628667 Bug-Debian: http://bugs.debian.org/628667 Signed-off-by: NeilBrown <neilb@suse.de>
This commit is contained in:
parent
4a96d9ff4f
commit
9a88e7b6d5
2
super1.c
2
super1.c
|
@ -1056,6 +1056,8 @@ static int write_init_super1(struct supertype *st)
|
|||
sb->dev_number = __cpu_to_le32(di->disk.number);
|
||||
if (di->disk.state & (1<<MD_DISK_WRITEMOSTLY))
|
||||
sb->devflags |= __cpu_to_le32(WriteMostly1);
|
||||
else
|
||||
sb->devflags &= ~(__cpu_to_le32(WriteMostly1));
|
||||
|
||||
if ((rfd = open("/dev/urandom", O_RDONLY)) < 0 ||
|
||||
read(rfd, sb->device_uuid, 16) != 16) {
|
||||
|
|
Loading…
Reference in New Issue