mirror of
https://github.com/freebsd/freebsd-src.git
synced 2026-10-28 11:25:21 +01:00
automount(8): when flushing autofs, specify fsid
PR: 272446
(cherry picked from commit 56c44bd92e)
This commit is contained in:
1 parent
361f7820cd
commit
c5f92e2ac8
1 file changed
+4
-2
@@ -229,7 +229,7 @@ mount_unmount(struct node *root)
|
||||
}
|
||||
|
||||
static void
|
||||
flush_autofs(const char *fspath)
|
||||
flush_autofs(const char *fspath, const fsid_t *fsid)
|
||||
{
|
||||
struct iovec *iov = NULL;
|
||||
char errmsg[255];
|
||||
@@ -242,6 +242,8 @@ flush_autofs(const char *fspath)
|
||||
__DECONST(void *, "autofs"), (size_t)-1);
|
||||
build_iovec(&iov, &iovlen, "fspath",
|
||||
__DECONST(void *, fspath), (size_t)-1);
|
||||
build_iovec(&iov, &iovlen, "fsid",
|
||||
__DECONST(void *, fsid), sizeof(*fsid));
|
||||
build_iovec(&iov, &iovlen, "errmsg",
|
||||
errmsg, sizeof(errmsg));
|
||||
|
||||
@@ -291,7 +293,7 @@ flush_caches(void)
|
||||
continue;
|
||||
}
|
||||
|
||||
flush_autofs(mntbuf[i].f_mntonname);
|
||||
flush_autofs(mntbuf[i].f_mntonname, &statbuf.f_fsid);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user