[dm-devel] [PATCH 1/6] dm: use bdev_read_only to check if a device is read-only

2021-01-09 Thread Christoph Hellwig
dm-thin and dm-cache also work on partitions, so use the proper interface to check if the device is read-only. Signed-off-by: Christoph Hellwig Reviewed-by: Ming Lei Reviewed-by: Martin K. Petersen Reviewed-by: Hannes Reinecke --- drivers/md/dm-cache-metadata.c | 2 +- drivers/md/dm-thin-meta

[dm-devel] [PATCH 1/6] dm: use bdev_read_only to check if a device is read-only

2020-12-08 Thread Christoph Hellwig
dm-thin and dm-cache also work on partitions, so use the proper interface to check if the device is read-only. Signed-off-by: Christoph Hellwig Reviewed-by: Ming Lei Reviewed-by: Martin K. Petersen Reviewed-by: Hannes Reinecke --- drivers/md/dm-cache-metadata.c | 2 +- drivers/md/dm-thin-meta

Re: [dm-devel] [PATCH 1/6] dm: use bdev_read_only to check if a device is read-only

2020-12-08 Thread Ming Lei
On Mon, Dec 07, 2020 at 02:19:13PM +0100, Christoph Hellwig wrote: > dm-thin and dm-cache also work on partitions, so use the proper > interface to check if the device is read-only. > > Signed-off-by: Christoph Hellwig > Reviewed-by: Hannes Reinecke > --- > drivers/md/dm-cache-metadata.c | 2 +-

Re: [dm-devel] [PATCH 1/6] dm: use bdev_read_only to check if a device is read-only

2020-12-07 Thread Martin K. Petersen
Christoph, > dm-thin and dm-cache also work on partitions, so use the proper > interface to check if the device is read-only. Reviewed-by: Martin K. Petersen -- Martin K. Petersen Oracle Linux Engineering -- dm-devel mailing list dm-devel@redhat.com https://www.redhat.com/mailman/listi

[dm-devel] [PATCH 1/6] dm: use bdev_read_only to check if a device is read-only

2020-12-07 Thread Christoph Hellwig
dm-thin and dm-cache also work on partitions, so use the proper interface to check if the device is read-only. Signed-off-by: Christoph Hellwig Reviewed-by: Hannes Reinecke --- drivers/md/dm-cache-metadata.c | 2 +- drivers/md/dm-thin-metadata.c | 2 +- 2 files changed, 2 insertions(+), 2 dele