diff options
author | phk <phk@FreeBSD.org> | 2004-12-06 12:40:45 +0000 |
---|---|---|
committer | phk <phk@FreeBSD.org> | 2004-12-06 12:40:45 +0000 |
commit | 62d457bcc45b2326ec43218cf8ade9375b9cce26 (patch) | |
tree | 542d0c78127cb339ff81cbc374d3cd2c2381c00c /sys/kern | |
parent | bcbc430a4b892816c56d4202dfe0cc584ca362e9 (diff) | |
download | FreeBSD-src-62d457bcc45b2326ec43218cf8ade9375b9cce26.zip FreeBSD-src-62d457bcc45b2326ec43218cf8ade9375b9cce26.tar.gz |
Remove the kern.rootdev sysctl.
Root filessytems (like NFS) don't have an associated disk device,
and even if they had, the exact semantics would be filesystem
dependent and should be implemented there.
Diffstat (limited to 'sys/kern')
-rw-r--r-- | sys/kern/vfs_mount.c | 24 |
1 files changed, 0 insertions, 24 deletions
diff --git a/sys/kern/vfs_mount.c b/sys/kern/vfs_mount.c index 0a7b635..54ffc34 100644 --- a/sys/kern/vfs_mount.c +++ b/sys/kern/vfs_mount.c @@ -162,30 +162,6 @@ const char *ctrootdevname = ROOTDEVNAME; const char *ctrootdevname = NULL; #endif -/* - * Has to be dynamic as the value of rootdev can change; however, it can't - * change after the root is mounted, so a user process can't access this - * sysctl until after the value is unchangeable. - */ -static int -sysctl_rootdev(SYSCTL_HANDLER_ARGS) -{ - int error; - - /* _RD prevents this from happening. */ - KASSERT(req->newptr == NULL, ("Attempt to change root device name")); - - if (rootdev != NULL) - error = sysctl_handle_string(oidp, rootdev->si_name, 0, req); - else - error = sysctl_handle_string(oidp, "", 0, req); - - return (error); -} - -SYSCTL_PROC(_kern, OID_AUTO, rootdev, CTLTYPE_STRING | CTLFLAG_RD, - 0, 0, sysctl_rootdev, "A", "Root file system device"); - /* Remove one mount option. */ static void vfs_freeopt(struct vfsoptlist *opts, struct vfsopt *opt) |