bug-fileutils
[Top][All Lists]
Advanced

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

df fails to recognise samba file systems as remote


From: Craig Emery
Subject: df fails to recognise samba file systems as remote
Date: Tue, 14 May 2002 14:55:28 +0100
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.0rc2) Gecko/20020510

Dear All,

since the means of determining os a filesystem is remote is to look for a colon in it's name, samba mounted filesystems are incorrectly identified as local.

NFS uses host:/remote/path
Samba uses //host/remote/path

Please find enclosed a patch the copyright to which I release in full without reservation to GNU under the GPL.

Craig.

--- fileutils-4.1/lib/mountlist.h.local Mon May 13 13:51:12 2002
+++ fileutils-4.1/lib/mountlist.h       Mon May 13 13:51:37 2002
@@ -46,5 +46,5 @@
 #endif

 #ifndef ME_REMOTE
-# define ME_REMOTE(fs_name, fs_type) (strchr (fs_name, ':') != 0)
+# define ME_REMOTE(fs_name, fs_type) ((strchr (fs_name, ':') != 0) || (fs_name == strstr (fs_name, "//")))
 #endif




reply via email to

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