[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: mkfile -- create large files efficiently
From: |
Pádraig Brady |
Subject: |
Re: mkfile -- create large files efficiently |
Date: |
Mon, 9 Feb 2009 01:17:36 +0000 |
User-agent: |
Thunderbird 2.0.0.6 (X11/20071008) |
Matej Cepl wrote:
> On 2009-02-08, 00:01 GMT, Pádraig Brady wrote:
>> It wasn't called after the system call. It was called after the
>> function it was providing. mkfile isn't the best name either BTW.
>> Also the existing `truncate` command in freebsd which
>> swayed the choice of name.
>
> OK, so what do you suggest to do? Should I patch truncate with
> posix_fallocate, or there is at least some hope for mkfile (I
> still like the name)?
I would suggest patching a --allocate option into truncate.
Then mkfile can be implemented as a script something like:
(truncate --allocate || dd if=/dev/zero ) && chmod u+t
This is just one opinion though.
I'd get other opinions before doing anything.
cheers,
Pádraig.
- mkfile -- create large files efficiently, Matej Cepl, 2009/02/06
- [PATCH] mkfile -- create large files efficiently, Matej Cepl, 2009/02/06
- Re: mkfile -- create large files efficiently, Pádraig Brady, 2009/02/06
- Re: mkfile -- create large files efficiently, Matej Cepl, 2009/02/07
- Re: mkfile -- create large files efficiently, Pádraig Brady, 2009/02/07
- Re: mkfile -- create large files efficiently, Matej Cepl, 2009/02/08
- Re: mkfile -- create large files efficiently,
Pádraig Brady <=
- Re: mkfile -- create large files efficiently, Jim Meyering, 2009/02/09
- [PATCH] Trying to finalize loose ends of truncate.c fallocate, Matej Cepl, 2009/02/27
- Re: [PATCH] Trying to finalize loose ends of truncate.c fallocate, Eric Blake, 2009/02/27
- Re: [PATCH] Trying to finalize loose ends of truncate.c fallocate, Pádraig Brady, 2009/02/27
- Re: [PATCH] Trying to finalize loose ends of truncate.c fallocate, Matej Cepl, 2009/02/27
- Re: [PATCH] Trying to finalize loose ends of truncate.c fallocate, Eric Blake, 2009/02/28
- Re: mkfile -- create large files efficiently, Matej Cepl, 2009/02/27
- [PATCH] Following up on the comments from the upstream, Matej Cepl, 2009/02/27
- Re: mkfile -- create large files efficiently, Jim Meyering, 2009/02/28