GNU bug report logs -
#6555
stat enhancement
Previous Next
Reported by: A Burgie <dajoker <at> gmail.com>
Date: Fri, 2 Jul 2010 20:55:01 UTC
Severity: normal
Done: Pádraig Brady <P <at> draigBrady.com>
Bug is archived. No further changes may be made.
Full log
Message #11 received at 6555 <at> debbugs.gnu.org (full text, mbox):
Pádraig Brady wrote:
> On 02/07/10 21:49, A Burgie wrote:
>> To Whom it May Concern:
>>
>> I have made a small change to the stat command adding in the ability
>> to print the mountpoint of the specified file/directory. This is
>> something I have heard several others (besides myself) trying to do
>> via various methods involving the df command or some recursive
>> directory traversals but which would make sense in the stat command.
>> Michael Meskes suggested CC-ing meyering <at> redhat.com as well which I am
>> doing.
>>
>> Reading through the submission process for the package I am not sure
>> if the actual e-mail body should be the output of the 'git
>> format-patch --stdout -1' command or not so I am attaching it. If
>> preferred I will send it inline next time and in the future.
Inline is slightly preferred.
No big deal.
> The idea seems sensible.
I think so, too.
However, the patch that adds the option would do well to add
a test that exercises it and to mention it in the NEWS file.
Your change will qualify as "significant".
Can you file a copyright assignment? Here are guidelines:
http://git.savannah.gnu.org/cgit/coreutils.git/tree/HACKING#n327
> Using df on a file _is_ a little unintuitive,
> and also parsing the output from df is awkward.
>
> You copied (while re-indenting with non GNU options)
> the find_mount_point() function from df.c to stat.c
> We'll have to refactor that out for both to use
> (if indeed it's the best method to use which I've not
> looked into at this stage).
Yes, it has to be factored out.
I haven't looked either, yet ;-)
Thanks for contributing!
This bug report was last modified 14 years and 272 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.