(REMOTE_FS_TYPE): New macro.
authorJim Meyering <jim@meyering.net>
Sat, 25 Jul 1998 14:55:10 +0000 (14:55 +0000)
committerJim Meyering <jim@meyering.net>
Sat, 25 Jul 1998 14:55:10 +0000 (14:55 +0000)
lib/mountlist.h

index 0a6e6d8..963670d 100644 (file)
@@ -30,3 +30,9 @@ struct mount_entry *read_filesystem_list (int need_fs_type, int all_fs);
 #else
 struct mount_entry *read_filesystem_list ();
 #endif
+
+/* In most environments, by default, a filesystem type is remote if it
+   begins with "nfs".  This allows variants like "nfs3".  */
+#ifndef REMOTE_FS_TYPE
+# define REMOTE_FS_TYPE(t) (!strncmp (t, "nfs", 3))
+#endif