Re: [PATCH] disallow create or grow clustered bitmap with writemostly set

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



[...]
> +				if (dv->writemostly == FlagSet) {
> +					if (major_num == BITMAP_MAJOR_CLUSTERED) {
> +						pr_err("Can not set --write-mostly with a clustered bitmap\n");
> +						goto abort_locked;
[...]
> +			if (((disk.state & (1 << MD_DISK_WRITEMOSTLY)) == 0) &&
> +			   (strcmp(s->bitmap_file, "clustered") == 0)) {
> +				pr_err("disks marked write-mostly are not supported with clustered bitmap\n");
> +				return 1;

It would be more useful for those error messages to give some
information identifying the MD set and disk, as written they are
only slightly better variants of the classic "Cannot open file."
message.



[Index of Archives]     [Linux RAID Wiki]     [ATA RAID]     [Linux SCSI Target Infrastructure]     [Linux Block]     [Linux IDE]     [Linux SCSI]     [Linux Hams]     [Device Mapper]     [Device Mapper Cryptographics]     [Kernel]     [Linux Admin]     [Linux Net]     [GFS]     [RPM]     [git]     [Yosemite Forum]


  Powered by Linux