linux-btrfs.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/2] btrfs-progs: fixes for mkfs.btrfs on file with emulated zones
@ 2021-09-22  7:53 Naohiro Aota
  2021-09-22  7:53 ` [PATCH 1/2] btrfs-progs: use btrfs_device_size() instead of device_get_partition_size_fd() Naohiro Aota
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Naohiro Aota @ 2021-09-22  7:53 UTC (permalink / raw)
  To: linux-btrfs; +Cc: David Sterba, Naohiro Aota

The following two errors occur when mkfs.btrfs is called on a regular file
with emulated zones. These patches address the errors.

ERROR: zoned: failed to read size of /home/naota/tmp/btrfs.img: Inappropriate ioctl for device

ERROR: zoned: failed to reset device '/home/naota/tmp/btrfs.img' zones: Inappropriate ioctl for device

Naohiro Aota (2):
  btrfs-progs: use btrfs_device_size() instead of
    device_get_partition_size_fd()
  btrfs-progs: do not zone reset on emulated zoned mode

 common/device-utils.c | 27 +++++++++++++++------------
 kernel-shared/zoned.c | 15 ++++++++++-----
 kernel-shared/zoned.h |  1 +
 3 files changed, 26 insertions(+), 17 deletions(-)

-- 
2.33.0


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

end of thread, other threads:[~2021-09-22 19:48 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-09-22  7:53 [PATCH 0/2] btrfs-progs: fixes for mkfs.btrfs on file with emulated zones Naohiro Aota
2021-09-22  7:53 ` [PATCH 1/2] btrfs-progs: use btrfs_device_size() instead of device_get_partition_size_fd() Naohiro Aota
2021-09-22  7:53 ` [PATCH 2/2] btrfs-progs: do not zone reset on emulated zoned mode Naohiro Aota
2021-09-22 19:47 ` [PATCH 0/2] btrfs-progs: fixes for mkfs.btrfs on file with emulated zones David Sterba

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).