qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v2 0/5] block: Generic file creation fallback
@ 2020-01-22 16:45 Max Reitz
  2020-01-22 16:45 ` [PATCH v2 1/5] block/nbd: Fix hang in .bdrv_close() Max Reitz
                   ` (5 more replies)
  0 siblings, 6 replies; 13+ messages in thread
From: Max Reitz @ 2020-01-22 16:45 UTC (permalink / raw)
  To: qemu-block; +Cc: Kevin Wolf, Maxim Levitsky, qemu-devel, Max Reitz

Hi,

As version 1, this series adds a fallback path for creating files (on
the protocol layer) if the protocol driver does not support file
creation, but the file already exists.


Branch: https://github.com/XanClic/qemu.git skip-proto-create-v2
Branch: https://git.xanclic.moe/XanClic/qemu.git skip-proto-create-v2


v2:
- Drop blk_truncate_for_formatting(): It doesn’t make sense to introduce
  this function any more after 26536c7fc25917d1bd13781f81fe3ab039643bff
  (“block: Do not truncate file node when formatting”), because we’d
  only use it in bdrv_create_file_fallback().
  Thus, it makes more sense to create special helper functions
  specifically for bdrv_create_file_fallback().

- Thus, dropped patches 2 and 3.

- And changed patch 4 to include those helper functions.

- Rebased, which was a bit of a pain.


git-backport-diff against v1:

Key:
[----] : patches are identical
[####] : number of functional differences between upstream/downstream patch
[down] : patch is downstream-only
The flags [FC] indicate (F)unctional and (C)ontextual differences, respectively

001/5:[----] [-C] 'block/nbd: Fix hang in .bdrv_close()'
002/5:[0080] [FC] 'block: Generic file creation fallback'
003/5:[----] [--] 'file-posix: Drop hdev_co_create_opts()'
004/5:[----] [--] 'iscsi: Drop iscsi_co_create_opts()'
005/5:[----] [-C] 'iotests: Add test for image creation fallback'


Max Reitz (5):
  block/nbd: Fix hang in .bdrv_close()
  block: Generic file creation fallback
  file-posix: Drop hdev_co_create_opts()
  iscsi: Drop iscsi_co_create_opts()
  iotests: Add test for image creation fallback

 block.c                    | 159 ++++++++++++++++++++++++++++++++++---
 block/file-posix.c         |  67 ----------------
 block/iscsi.c              |  56 -------------
 block/nbd.c                |  14 +++-
 tests/qemu-iotests/259     |  61 ++++++++++++++
 tests/qemu-iotests/259.out |  14 ++++
 tests/qemu-iotests/group   |   1 +
 7 files changed, 236 insertions(+), 136 deletions(-)
 create mode 100755 tests/qemu-iotests/259
 create mode 100644 tests/qemu-iotests/259.out

-- 
2.24.1



^ permalink raw reply	[flat|nested] 13+ messages in thread

end of thread, other threads:[~2020-02-19 10:48 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-01-22 16:45 [PATCH v2 0/5] block: Generic file creation fallback Max Reitz
2020-01-22 16:45 ` [PATCH v2 1/5] block/nbd: Fix hang in .bdrv_close() Max Reitz
2020-01-22 18:55   ` Eric Blake
2020-01-23 22:54   ` Maxim Levitsky
2020-01-22 16:45 ` [PATCH v2 2/5] block: Generic file creation fallback Max Reitz
2020-01-23 22:58   ` Maxim Levitsky
2020-01-22 16:45 ` [PATCH v2 3/5] file-posix: Drop hdev_co_create_opts() Max Reitz
2020-01-22 16:45 ` [PATCH v2 4/5] iscsi: Drop iscsi_co_create_opts() Max Reitz
2020-01-22 16:45 ` [PATCH v2 5/5] iotests: Add test for image creation fallback Max Reitz
2020-01-22 19:05   ` Eric Blake
2020-01-23 22:59   ` Maxim Levitsky
2020-02-19 10:38 ` [PATCH v2 0/5] block: Generic file " Max Reitz
2020-02-19 10:47   ` Maxim Levitsky

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).