[stgt] [PATCH 1/1] tgtimg: use posic_fallocate when creating the big files

FUJITA Tomonori fujita.tomonori at lab.ntt.co.jp
Tue Oct 12 08:56:15 CEST 2010


On Tue, 12 Oct 2010 16:30:57 +1100
ronnie sahlberg <ronniesahlberg at gmail.com> wrote:

> Please find attached a trivial patch for tgtimg.
> It changes to use posix_fallocate() when creating raw disk images
> instead of using a loop with pwrite().
> 
> This makes it less intrusive to the system when creating many large
> disk images at the same time.
> I did try using posix_fadvise() as an alternative but that did not
> work well. (it did not have much effect on the vm trashing)

Applied, thanks!
--
To unsubscribe from this list: send the line "unsubscribe stgt" in
the body of a message to majordomo at vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html



More information about the stgt mailing list