Re: [dm-devel] How to debug missing devices in `multipath -l` (and …`-ll`)

2022-09-14 Thread Konstantin Kharlamov
On Tue, 2022-09-13 at 17:37 +0300, Konstantin Kharlamov wrote: > Hello! Sorry if it's the wrong list, it is referred to by multipath-tools > without saying it's "devel", so I presume user questions are okay…? > > How to debug a lack of devices in `multipath -l` and `… -ll` outputs? I'm > studying

Re: [dm-devel] [PATCH v13 13/13] dm: add power-of-2 target for zoned devices with non power-of-2 zone sizes

2022-09-14 Thread Mike Snitzer
On Mon, Sep 12 2022 at 4:22P -0400, Pankaj Raghav wrote: > Only zoned devices with power-of-2(po2) number of sectors per zone(zone > size) were supported in linux but now non power-of-2(npo2) zone sizes > support has been added to the block layer. > > Filesystems such as F2FS and btrfs have sup

Re: [dm-devel] [PATCH v13 13/13] dm: add power-of-2 target for zoned devices with non power-of-2 zone sizes

2022-09-14 Thread Pankaj Raghav
>> + >> +if (is_power_of_2(zone_size)) >> +DMWARN("%pg: underlying device has a power-of-2 number of >> sectors per zone", >> + dmh->dev->bdev); >> + >> +dmh->zone_size = zone_size; >> +dmh->zone_size_po2 = 1 << get_count_order_long(zone_size); >> +dmh

[dm-devel] [PATCH] blk-lib: fix blkdev_issue_secure_erase

2022-09-14 Thread Mikulas Patocka
There's a bug in blkdev_issue_secure_erase. The statement "unsigned int len = min_t(sector_t, nr_sects, max_sectors);" sets the variable "len" to the length in sectors, but the statement "bio->bi_iter.bi_size = len" treats it as if it were in bytes. The statements "sector += len << SECTOR_SHIFT" an

Re: [dm-devel] [PATCH] blk-lib: fix blkdev_issue_secure_erase

2022-09-14 Thread Jens Axboe
On Wed, 14 Sep 2022 16:55:51 -0400 (EDT), Mikulas Patocka wrote: > There's a bug in blkdev_issue_secure_erase. The statement > "unsigned int len = min_t(sector_t, nr_sects, max_sectors);" > sets the variable "len" to the length in sectors, but the statement > "bio->bi_iter.bi_size = len" treats it