[Devel] [PATCH hci-8.2 6/7] dm-qcow2: add the report_enospc table argument
Konstantin Khorenko
khorenko at virtuozzo.com
Fri Nov 27 14:51:34 MSK 2026
Items 3, 4 and 5 of the cover letter reply.
On Fri, 27 Nov 2026 12:15:49 +0100, Alexander Ivanov wrote:
> + if (READ_ONCE(tgt->event_enospc))
> + *p++ = 's';
Drop the 's' flag. With report_enospc set event_enospc is never set,
so 's' never shows next to 'r', and nothing reads it: libploop parses
only the first field of the qcow2 status line. If something is to read
it, send it as its own patch and name the reader.
> A flag set by a message would be lost on every table reload, such as
> a snapshot or a migration, as the reload creates a new target. So it
> is a table argument, which userspace passes with every table it loads.
A table argument is lost the same way when userspace does not pass it.
Name the reloads libploop does on its own (snapshot, grow and merge
through dm_reload_imglist(), the push-backup switch) and say they all
must pass it. Also say that the status line of every qcow2 device gets
the new field ("1 v3 128" becomes "1 v3 128 o" or "... r"), and that
the target version goes to 1.1.0, which userspace checks before
passing the argument: an older kernel rejects the table.
--
Konstantin Khorenko,
Virtuozzo Linux Kernel Team
More information about the Devel
mailing list