[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: ME_REMOTE
From: |
Jim Meyering |
Subject: |
Re: ME_REMOTE |
Date: |
Fri, 25 Apr 2003 14:55:26 +0200 |
John Meyers <address@hidden> wrote:
> #ifndef ME_REMOTE
> # define ME_REMOTE(fs_name, fs_type) (strchr (fs_name, ':') != 0)
> #endif
>
> It only classifies nfs as remote.What about smbfs.I have many smbfs it is
> showing zero for smbfs .I am working around for df hangs if an nfs or
> smbfs is corupted due to machine reboots.
>
> Is it right to interpret smbfs as remote ?
What version of fileutils are you using?
Please try the latest. It's here:
ftp://ftp.gnu.org/gnu/coreutils/coreutils-5.0.tar.bz2
(coreutils is the union of fileutils, textutils, and sh-utils)
Here's the current definition of ME_REMOTE:
#ifndef ME_REMOTE
/* A file system is `remote' if its Fs_name contains a `:'
or if (it is of type smbfs and its Fs_name starts with `//'). */
# define ME_REMOTE(Fs_name, Fs_type) \
(strchr ((Fs_name), ':') != 0 \
|| ((Fs_name)[0] == '/' \
&& (Fs_name)[1] == '/' \
&& STREQ (Fs_type, "smbfs")))
#endif
- ME_REMOTE, John Meyers, 2003/04/25
- Re: ME_REMOTE,
Jim Meyering <=