From: no-reply@sashiko.virtuozzo.com
To: Alexander Ivanov <alexander.ivanov@virtuozzo.com>,
andrey.zhadchenko@virtuozzo.com
Cc: devel@openvz.org
Subject: Re: [Devel] [PATCH hci-8.2 v2 6/7] dm-qcow2: add the report_enospc table argument
Date: Tue, 1 Dec 2026 01:14:19 +0000 [thread overview]
Message-ID: <010701a22f2abc54-6cd6e8a9-e66b-4f50-9495-5adf8923cd7b-000000@eu-central-1.amazonses.com> (raw)
In-Reply-To: <20261130162456.1822406-7-alexander.ivanov@virtuozzo.com>
Thank you for your contribution! Sashiko AI review found 1 potential
issue to consider:
- [Low] dm-qcow2: new status flags word breaks qcow2-dm.sh image count
parsing
--
commit 3afae0c25611528e9beb7adeef464dfc7ec8b401
Author: Alexander Ivanov <alexander.ivanov@virtuozzo.com>
dm-qcow2: add the report_enospc table argument
This adds an optional first table argument, report_enospc. When it is set, a request that fails with ENOSPC is completed with BLK_STS_NOSPC at once instead of being delayed. The table status line gets a flags field, and the target version goes to 1.1.0.
> diff --git a/drivers/md/dm-qcow2-target.c b/drivers/md/dm-qcow2-target.c
> --- a/drivers/md/dm-qcow2-target.c
> +++ b/drivers/md/dm-qcow2-target.c
[ ... ]
> @@ -1152,8 +1164,15 @@ static void qcow2_status(struct dm_target *ti, status_type_t type,
> result[0] = '\0';
> break;
> case STATUSTYPE_TABLE:
> - DMEMIT("%u v%u %llu", qcow2->img_id + 1, hdr->version,
> - to_sector(qcow2->clu_size));
> + if (READ_ONCE(tgt->event_enospc))
> + *p++ = 's';
> + if (tgt->report_enospc)
> + *p++ = 'r';
> + if (p == stat)
> + *p++ = 'o';
> + *p = '\0';
> + DMEMIT("%u v%u %llu %s", qcow2->img_id + 1, hdr->version,
> + to_sector(qcow2->clu_size), stat);
> break;
[Severity: Low]
Does appending the flags word to every table line break scripts/qcow2-dm.sh?
get_dev_of_image() there takes the last character of the dmsetup table line as the image count:
scripts/qcow2-dm.sh:get_dev_of_image() {
nr_imgs=`echo $line | sed "s/.*\(\w\)$/\1/"`
That last character is now always a flag letter (o, r or s). top_img_id=$((nr_imgs - 1)) then evaluates the letter as an unset variable and gives -1, so the lookup fails with "Error during search of device". The remove, check, snapshot and resize commands that use this lookup stop working. The script isn't updated in this patch, and the commit message doesn't say that existing consumers of the table line need changing.
Carry the trailer below into the next revision and Sashiko will not review this patch again.
Reviewed-by: Sashiko <no-reply@sashiko.virtuozzo.com>
--
Sashiko AI review · https://sashiko.vzint.dev/#/patchset/20261130162456.1822406-1-alexander.ivanov@virtuozzo.com?part=6
_______________________________________________
Devel mailing list
Devel@openvz.org
https://lists.openvz.org/mailman/listinfo/devel
next prev parent reply other threads:[~2026-12-01 1:15 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-30 16:24 [Devel] [PATCH hci-8.2 v2 0/7] dm-qcow2, dm-ploop: report ENOSPC at once for vhost-blk disks Alexander Ivanov
2026-11-30 16:24 ` [Devel] [PATCH hci-8.2 v2 1/7] dm-qcow2: always resubmit delayed ENOSPC requests in presuspend Alexander Ivanov
2026-12-01 1:08 ` no-reply
2026-11-30 16:24 ` [Devel] [PATCH hci-8.2 v2 2/7] dm-qcow2: arm the ENOSPC timer only for the first delayed request Alexander Ivanov
2026-12-01 1:09 ` no-reply
2026-11-30 16:24 ` [Devel] [PATCH hci-8.2 v2 3/7] dm-qcow2: drop the WARN on a read failing with ENOSPC Alexander Ivanov
2026-12-01 1:10 ` no-reply
2026-11-30 16:24 ` [Devel] [PATCH hci-8.2 v2 4/7] dm-ploop: arm the ENOSPC timer only for the first delayed request Alexander Ivanov
2026-12-01 1:11 ` no-reply
2026-11-30 16:24 ` [Devel] [PATCH hci-8.2 v2 5/7] dm-ploop: drop the WARN on a non-write request failing with ENOSPC Alexander Ivanov
2026-12-01 1:11 ` no-reply
2026-11-30 16:24 ` [Devel] [PATCH hci-8.2 v2 6/7] dm-qcow2: add the report_enospc table argument Alexander Ivanov
2026-12-01 1:14 ` no-reply [this message]
2026-12-01 8:07 ` Alexander Ivanov
2026-11-30 16:24 ` [Devel] [PATCH hci-8.2 v2 7/7] dm-ploop: " Alexander Ivanov
2026-12-01 1:15 ` no-reply
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=010701a22f2abc54-6cd6e8a9-e66b-4f50-9495-5adf8923cd7b-000000@eu-central-1.amazonses.com \
--to=no-reply@sashiko.virtuozzo.com \
--cc=alexander.ivanov@virtuozzo.com \
--cc=andrey.zhadchenko@virtuozzo.com \
--cc=devel@openvz.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox