The Linux Kernel Mailing List
 help / color / mirror / Atom feed
* [PATCH RESEND 0/1] loop: introduce LO_FLAGS_NODEALLOC
@ 2022-08-06 11:49 Zhang Boyang
  2022-08-06 11:49 ` [PATCH RESEND 1/1] " Zhang Boyang
  0 siblings, 1 reply; 3+ messages in thread
From: Zhang Boyang @ 2022-08-06 11:49 UTC (permalink / raw)
  To: Jens Axboe, Christoph Hellwig, linux-block
  Cc: Tetsuo Handa, Jan Kara, Ming Lei, Darrick J . Wong,
	Chaitanya Kulkarni, Damien Le Moal, Martin K . Petersen,
	linux-kernel

Hi,

This patch gives userspace ability to prevent underlying file of loop
device to be sparse. Currently, if loop device is 'trimmed'
(BLKDISCARD), then underlying file will always become sparse and disk
space freed. This behaviour is good for thin provisioning but not good
for preallocated disk images. This patch introduces LO_FLAGS_NODEALLOC
flag, which will write zeroes to underlying file instead of punching
holes when BLKDISCARD is requested. Thus reducing file fragmentation of
preallocated disk images and improve performance.

I will also submit patches to util-linux to provide userspace support if
this patch is merged.

Best Regards,
Zhang Boyang 



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

end of thread, other threads:[~2022-08-06 14:52 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-08-06 11:49 [PATCH RESEND 0/1] loop: introduce LO_FLAGS_NODEALLOC Zhang Boyang
2022-08-06 11:49 ` [PATCH RESEND 1/1] " Zhang Boyang
2022-08-06 14:51   ` Jens Axboe

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox