bug-coreutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [RFC] fallocate utility


From: Giuseppe Scrivano
Subject: Re: [RFC] fallocate utility
Date: Fri, 31 Jul 2009 20:12:02 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.96 (gnu/linux)

Hello,

Pádraig Brady <address@hidden> writes:

> Tilman Schmidt wrote:
>> Pádraig Brady schrieb:
>>> I don't see a problem in extending the meaning of the truncate command.
>>> Now truncate isn't the best name for the command but that name
>>> already existed in BSD and so I thought it best to align with that.
>>> So what about also having an fallocate command in coreutils?
>>> Well it would benefit from all the existing options of the truncate command,
>>> I.E. would share most of the code, so I'm not convinced.
>> 
>> Why not make it, in the best Unix tradition, a single
>> executable whose action depends on the name it is run as?
>
> Hmm. Good idea.
> There is precedent for that already in coreutils.

What do you think about having two separate executables?  Considering
fallocate and truncate will share almost all code, these differences can
be separed at compilation-time.  It seems that the same approach is
already used by md5sum and shaXXXsum.

IMHO, it is a bit cleaner than depend from the argv[0] value at run-time
(Tilman, is it what you meant?).

Cheers,
Giuseppe




reply via email to

[Prev in Thread] Current Thread [Next in Thread]