Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F169240372
D4556.id11537.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
888 B
Referenced Files
None
Subscribers
None
D4556.id11537.diff
View Options
Index: head/sbin/mount/mount.c
===================================================================
--- head/sbin/mount/mount.c
+++ head/sbin/mount/mount.c
@@ -485,10 +485,18 @@
strlcpy(realfsfile, fs->fs_file, sizeof(realfsfile));
}
+ /*
+ * Consider the filesystem to be mounted if:
+ * It has the same mountpoint as a mounted filesytem, and
+ * It has the same type as that same mounted filesystem, and
+ * It has the same device name as that same mounted filesystem, OR
+ * It is a nonremountable filesystem
+ */
for (i = mntsize - 1; i >= 0; --i)
if (strcmp(realfsfile, mntbuf[i].f_mntonname) == 0 &&
+ strcmp(fs->fs_vfstype, mntbuf[i].f_fstypename) == 0 &&
(!isremountable(fs->fs_vfstype) ||
- strcmp(fs->fs_spec, mntbuf[i].f_mntfromname) == 0))
+ (strcmp(fs->fs_spec, mntbuf[i].f_mntfromname) == 0)))
return (1);
return (0);
}
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Wed, Sep 2, 12:48 AM (19 h, 51 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
37667292
Default Alt Text
D4556.id11537.diff (888 B)
Attached To
Mode
D4556: Fix "mount -a" for NFS and ZFS filesystems with shared mountpoints
Attached
Detach File
Event Timeline
Log In to Comment