Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F108050012
D32607.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
3 KB
Referenced Files
None
Subscribers
None
D32607.diff
View Options
diff --git a/ObsoleteFiles.inc b/ObsoleteFiles.inc
--- a/ObsoleteFiles.inc
+++ b/ObsoleteFiles.inc
@@ -40,6 +40,9 @@
# xargs -n1 | sort | uniq -d;
# done
+# 20211120
+OLD_FILES+=usr/share/man/man9/kernel_vmount.9.gz
+
# 20211115: vm_page busy functions removed
OLD_FILES+=share/man/man9/vm_page_sbusy.9.gz
OLD_FILES+=share/man/man9/vm_page_xbusy.9.gz
diff --git a/share/man/man9/Makefile b/share/man/man9/Makefile
--- a/share/man/man9/Makefile
+++ b/share/man/man9/Makefile
@@ -1313,7 +1313,6 @@
ithread.9 ithread_schedule.9
MLINKS+=kernacc.9 useracc.9
MLINKS+=kernel_mount.9 free_mntarg.9 \
- kernel_mount.9 kernel_vmount.9 \
kernel_mount.9 mount_arg.9 \
kernel_mount.9 mount_argb.9 \
kernel_mount.9 mount_argf.9 \
diff --git a/share/man/man9/kernel_mount.9 b/share/man/man9/kernel_mount.9
--- a/share/man/man9/kernel_mount.9
+++ b/share/man/man9/kernel_mount.9
@@ -25,13 +25,12 @@
.\"
.\" $FreeBSD$
.\"
-.Dd December 13, 2004
+.Dd November 20, 2021
.Dt KERNEL_MOUNT 9
.Os
.Sh NAME
.Nm free_mntarg ,
.Nm kernel_mount ,
-.Nm kernel_vmount ,
.Nm mount_arg ,
.Nm mount_argb ,
.Nm mount_argf ,
@@ -42,8 +41,6 @@
.Fn free_mntarg "struct mntarg *ma"
.Ft int
.Fn kernel_mount "struct mntarg *ma" "int flags"
-.Ft int
-.Fn kernel_vmount "int flags" ...
.Ft "struct mntarg *"
.Fo mount_arg
.Fa "struct mntarg *ma" "const char *name" "const void *val" "int len"
@@ -100,12 +97,6 @@
not be attempted.
.Pp
The
-.Fn kernel_vmount
-is a function similar to
-.Xr printf 9
-which is used to mount a file system.
-.Pp
-The
.Fn mount_arg
function takes a plain argument and crafts parts of
the structure with regards to various mount options.
@@ -178,20 +169,6 @@
return (error);
}
.Ed
-.Pp
-When working with
-.Fn kernel_vmount ,
-.Fa varargs
-must come in pairs, e.g.,
-.Brq Va name , value .
-.Bd -literal
- error = kernel_vmount(
- MNT_RDONLY,
- "fstype", vfsname,
- "fspath", "/",
- "from", path,
- NULL);
-.Ed
.Sh SEE ALSO
.Xr VFS 9 ,
.Xr VFS_MOUNT 9
diff --git a/sys/kern/vfs_mount.c b/sys/kern/vfs_mount.c
--- a/sys/kern/vfs_mount.c
+++ b/sys/kern/vfs_mount.c
@@ -2816,32 +2816,6 @@
return (error);
}
-/*
- * A printflike function to mount a filesystem.
- */
-int
-kernel_vmount(int flags, ...)
-{
- struct mntarg *ma = NULL;
- va_list ap;
- const char *cp;
- const void *vp;
- int error;
-
- va_start(ap, flags);
- for (;;) {
- cp = va_arg(ap, const char *);
- if (cp == NULL)
- break;
- vp = va_arg(ap, const void *);
- ma = mount_arg(ma, cp, vp, (vp != NULL ? -1 : 0));
- }
- va_end(ap);
-
- error = kernel_mount(ma, flags);
- return (error);
-}
-
/* Map from mount options to printable formats. */
static struct mntoptnames optnames[] = {
MNTOPT_NAMES
diff --git a/sys/sys/mount.h b/sys/sys/mount.h
--- a/sys/sys/mount.h
+++ b/sys/sys/mount.h
@@ -973,7 +973,6 @@
int dounmount(struct mount *, uint64_t, struct thread *);
int kernel_mount(struct mntarg *ma, uint64_t flags);
-int kernel_vmount(int flags, ...);
struct mntarg *mount_arg(struct mntarg *ma, const char *name, const void *val, int len);
struct mntarg *mount_argb(struct mntarg *ma, int flag, const char *name);
struct mntarg *mount_argf(struct mntarg *ma, const char *name, const char *fmt, ...);
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Tue, Jan 21, 10:11 PM (20 h, 35 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
16021087
Default Alt Text
D32607.diff (3 KB)
Attached To
Mode
D32607: mount: retire kernel_vmount()
Attached
Detach File
Event Timeline
Log In to Comment