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] drivers/md/dm-qcow2: test the table mode against BLK_OPEN_WRITE, drop unused is_ro
Date: Fri, 20 Nov 2026 16:42:52 +0000 [thread overview]
Message-ID: <010701a1f9d6e5fe-d1b415c7-2e72-44cc-bc1e-c39107b30bc9-000000@eu-central-1.amazonses.com> (raw)
In-Reply-To: <20261120164000.3954787-1-alexander.ivanov@virtuozzo.com>
> dm_table_get_mode() returns blk_mode_t, but qcow2_check_convert_hdr(),
> qcow2_attach_file(), qcow2_truncate_unused_tail(), qcow2_postsuspend()
> and qcow2_preresume() still test its result against FMODE_WRITE. The
> two flags have the same value today, so behaviour is unaffected. But it
> is the wrong type, and it is inconsistent with the rest of the driver,
> which already uses BLK_OPEN_WRITE.
>
> Switch these checks to BLK_OPEN_WRITE. In qcow2_attach_file() test the
> read and write bits of the table mode against the file mode one by one
> instead of masking an fmode_t with a blk_mode_t.
>
> The is_ro variable in qcow2_check_convert_hdr() has only a
> commented-out user. Remove it along with the dead code.
>
> https://virtuozzo.atlassian.net/browse/VSTOR-152395
> Feature: dm-qcow2: block device over QCOW2 files driver
>
> Signed-off-by: Alexander Ivanov <alexander.ivanov@virtuozzo.com>
Sashiko has reviewed this patch and found no issues.
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/20261120164000.3954787-1-alexander.ivanov@virtuozzo.com?part=1
_______________________________________________
Devel mailing list
Devel@openvz.org
https://lists.openvz.org/mailman/listinfo/devel
next prev parent reply other threads:[~2026-11-20 16:44 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-20 16:40 Alexander Ivanov
2026-11-20 16:42 ` no-reply [this message]
2026-11-20 17:08 ` Konstantin Khorenko
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=010701a1f9d6e5fe-d1b415c7-2e72-44cc-bc1e-c39107b30bc9-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