[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: new snapshot available: coreutils-8.17.70-1bacb4
From: |
Bernhard Voelker |
Subject: |
Re: new snapshot available: coreutils-8.17.70-1bacb4 |
Date: |
Wed, 08 Aug 2012 18:12:16 +0200 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:14.0) Gecko/20120713 Thunderbird/14.0 |
On 08/08/2012 06:07 PM, Jim Meyering wrote:
> Bernhard Voelker wrote:
>
>> On 08/08/2012 05:43 PM, Pádraig Brady wrote:
>>
>>> +require_mount_list_()
>>> +{
>>> + df >/dev/null 2>&1 ||
>>> + skip_ "Unable to read the list of mounted file systems."
>>> +}
>>> +
>>
>> Hmm, I think this is not enough: df can also fail due to other reasons,
>> e.g. when a mount point is not reachable by the user:
>>
>> $ src/df > /dev/null ; echo $?
>> src/df: ‘/root/backup’: Permission denied
>> 1
>
> Good point.
>
> "df ." or "df /" should be more reliable.
Good idea, but doesn't work either:
$ src/df . ; echo $?
src/df: Warning: cannot read table of mounted file systems: No such file or
directory
Filesystem 1K-blocks Used Available Use% Mounted on
- 354786776 259885664 93819788 74% /media/sdb5
0
It's because that's only a warning when arguments are given:
/* Couldn't read the table of mounted file systems.
Fail if df was invoked with no file name arguments;
Otherwise, merely give a warning and proceed. */
Have a nice day,
Berny
- new snapshot available: coreutils-8.17.70-1bacb4, Jim Meyering, 2012/08/08
- Re: new snapshot available: coreutils-8.17.70-1bacb4, Pádraig Brady, 2012/08/08
- Re: new snapshot available: coreutils-8.17.70-1bacb4, Jim Meyering, 2012/08/08
- Re: new snapshot available: coreutils-8.17.70-1bacb4, Bernhard Voelker, 2012/08/08
- Re: new snapshot available: coreutils-8.17.70-1bacb4, Jim Meyering, 2012/08/08
- Re: new snapshot available: coreutils-8.17.70-1bacb4,
Bernhard Voelker <=
- Re: new snapshot available: coreutils-8.17.70-1bacb4, Pádraig Brady, 2012/08/08
- Re: new snapshot available: coreutils-8.17.70-1bacb4, Bernhard Voelker, 2012/08/08
- Re: new snapshot available: coreutils-8.17.70-1bacb4, Jim Meyering, 2012/08/08
- [PATCH] df: fail when the mount list cannot be read but is needed [was: new snapshot available: coreutils-8.17.70-1bacb4], Bernhard Voelker, 2012/08/09
- Re: [PATCH] df: fail when the mount list cannot be read but is needed [was: new snapshot available: coreutils-8.17.70-1bacb4], Bernhard Voelker, 2012/08/14
- Re: [PATCH] df: fail when the mount list cannot be read but is needed [was: new snapshot available: coreutils-8.17.70-1bacb4], Jim Meyering, 2012/08/14
- Re: [PATCH] df: fail when the mount list cannot be read but is needed [was: new snapshot available: coreutils-8.17.70-1bacb4], Bernhard Voelker, 2012/08/14
- Re: [PATCH] df: fail when the mount list cannot be read but is needed [was: new snapshot available: coreutils-8.17.70-1bacb4], Jim Meyering, 2012/08/14
- Re: [PATCH] df: fail when the mount list cannot be read but is needed [was: new snapshot available: coreutils-8.17.70-1bacb4], Bernhard Voelker, 2012/08/14