Skip to content

Comments

Fix zc flush#7

Merged
ming1 merged 2 commits intomainfrom
fix-zc-flush
Aug 18, 2025
Merged

Fix zc flush#7
ming1 merged 2 commits intomainfrom
fix-zc-flush

Conversation

@ming1
Copy link
Collaborator

@ming1 ming1 commented Aug 18, 2025

No description provided.

ming1 added 2 commits August 18, 2025 07:25
FLUSH commands don't have meaningful offset and bytes parameters, so
using SyncFileRange with these values is incorrect. Replace with Fsync
in the zero-copy path to match the behavior of the non-zero-copy path.

Fixes: 3e5a7c5 ("rublk: loop: support zero copy")
Signed-off-by: Ming Lei <tom.leiming@gmail.com>
Add zero-copy parameter to __test_ublk_add_del_loop() and create new
test_ublk_format_mount_loop_zero_copy() test that verifies zero-copy
loop devices work correctly with filesystem operations including
mkfs.ext4, mount, I/O, and umount.

Signed-off-by: Ming Lei <tom.leiming@gmail.com>
@ming1 ming1 merged commit 8b1b3d2 into main Aug 18, 2025
8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant