Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/rump/librump/rumpvfs reject r/o mount attempts
details: https://anonhg.NetBSD.org/src/rev/d8994f18df4c
branches: trunk
changeset: 760746:d8994f18df4c
user: pooka <pooka%NetBSD.org@localhost>
date: Wed Jan 12 17:20:54 2011 +0000
description:
reject r/o mount attempts
diffstat:
sys/rump/librump/rumpvfs/rumpfs.c | 9 +++++++--
1 files changed, 7 insertions(+), 2 deletions(-)
diffs (30 lines):
diff -r b6cf40df7a1d -r d8994f18df4c sys/rump/librump/rumpvfs/rumpfs.c
--- a/sys/rump/librump/rumpvfs/rumpfs.c Wed Jan 12 17:16:24 2011 +0000
+++ b/sys/rump/librump/rumpvfs/rumpfs.c Wed Jan 12 17:20:54 2011 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: rumpfs.c,v 1.83 2011/01/12 17:14:34 pooka Exp $ */
+/* $NetBSD: rumpfs.c,v 1.84 2011/01/12 17:20:54 pooka Exp $ */
/*
* Copyright (c) 2009, 2010 Antti Kantee. All Rights Reserved.
@@ -26,7 +26,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: rumpfs.c,v 1.83 2011/01/12 17:14:34 pooka Exp $");
+__KERNEL_RCSID(0, "$NetBSD: rumpfs.c,v 1.84 2011/01/12 17:20:54 pooka Exp $");
#include <sys/param.h>
#include <sys/atomic.h>
@@ -1563,6 +1563,11 @@
{
int error;
+ if (mp->mnt_flag & MNT_RDONLY) {
+ printf("rumpfs does not support r/o mounts\n");
+ return EOPNOTSUPP;
+ }
+
error = set_statvfs_info(mntpath, UIO_USERSPACE, "rumpfs", UIO_SYSSPACE,
mp->mnt_op->vfs_name, mp, curlwp);
if (error)
Home |
Main Index |
Thread Index |
Old Index