coreutils
[Top][All Lists]
Advanced

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

Re: Help masking Stale file handle errors when using df


From: Kaushal Modi
Subject: Re: Help masking Stale file handle errors when using df
Date: Fri, 08 Sep 2017 12:26:58 +0000

On Fri, Sep 8, 2017 at 12:40 AM Pádraig Brady <address@hidden> wrote:

>
> The older df was looking at a static list of mounts from /etc/mtab,
> while the newer df uses the more dynamic /proc/self/mountinfo.
> This latter file has entries to the problematic mount points.
> I suspect ~/.snapshot/ may point to NFS and that is giving ESTALE
> errors for various mount points.
>

Thanks for that explanation.

Solutions would be to clean up the mounts at the system level,
>

I am not the sysadmin of the machines so I won't be able to deal with the
mount points.


> use the df -l option to only consider local file systems,
>

I tried that, but as almost everything I deal with is NFS, that option
won't work for me. Even my $HOME is NFS.


> or use df 2>/dev/null to discard errors (and assume that's the only error).


As I mentioned earlier, tcsh does not allow that. The only redirections
allowed are ">" (only STDOUT) or ">&" (both STDERR and STDOUT).

But I found a workaround.. using this tcsh alias:

alias _df 'df >& ! /tmp/$USER/df_out; \\
           cat /tmp/$USER/df_out \\
           | \grep -v "Stale file handle" \\
          '

Thanks.

-- 

Kaushal Modi


reply via email to

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