Re: ME_REMOTE
Jim Meyering <[email protected]> Fri, 25 Apr 2003 14:55:26 +0200
| Newsgroups | gmane.comp.gnu.fileutils.bugs |
|---|---|
| Message-ID | <[email protected]> |
John Meyers <[email protected]> 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