OpenVZ / Virtuozzo kernel development (devel@openvz.org)
 help / color / mirror / Atom feed
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] dm-qcow2: use BLK_OPEN_* flags to test dm_table_get_mode()
Date: Sat, 21 Nov 2026 08:40:02 +0000	[thread overview]
Message-ID: <010701a1fd4334ab-d80012aa-185a-4070-93b5-fe8b56fbf144-000000@eu-central-1.amazonses.com> (raw)
In-Reply-To: <20261121083700.4002573-1-alexander.ivanov@virtuozzo.com>

> dm_table_get_mode() returns blk_mode_t, but qcow2_attach_file(),
> 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 only reader of is_ro in qcow2_check_convert_hdr() is a
> commented-out check that refused a writable image whose dirty bit
> disagrees with the kernel_sets_dirty_bit parameter. Remove is_ro along
> with that check, and drop the ti argument, which is_ro was the only
> user of.
> 
> 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/20261121083700.4002573-1-alexander.ivanov@virtuozzo.com?part=1


_______________________________________________
Devel mailing list
Devel@openvz.org
https://lists.openvz.org/mailman/listinfo/devel

  reply	other threads:[~2026-11-21  8:41 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-11-21  8:37 Alexander Ivanov
2026-11-21  8:40 ` no-reply [this message]
2026-11-24 23:57 ` Andrey Zhadchenko
2026-11-30 13:17 ` Konstantin Khorenko
2026-11-30 13:18 ` 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=010701a1fd4334ab-d80012aa-185a-4070-93b5-fe8b56fbf144-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