Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/dev revert 1.281
details: https://anonhg.NetBSD.org/src/rev/d21ff06d1cd9
branches: trunk
changeset: 369865:d21ff06d1cd9
user: mlelstv <mlelstv%NetBSD.org@localhost>
date: Sun Sep 04 21:56:38 2022 +0000
description:
revert 1.281
VNDIOCLR requires write access to unconfigure a unit, even when the unit
is read-only.
diffstat:
sys/dev/vnd.c | 9 ++-------
1 files changed, 2 insertions(+), 7 deletions(-)
diffs (30 lines):
diff -r 04aa49e5e64f -r d21ff06d1cd9 sys/dev/vnd.c
--- a/sys/dev/vnd.c Sun Sep 04 21:37:50 2022 +0000
+++ b/sys/dev/vnd.c Sun Sep 04 21:56:38 2022 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: vnd.c,v 1.286 2022/05/31 14:13:31 riastradh Exp $ */
+/* $NetBSD: vnd.c,v 1.287 2022/09/04 21:56:38 mlelstv Exp $ */
/*-
* Copyright (c) 1996, 1997, 1998, 2008, 2020 The NetBSD Foundation, Inc.
@@ -91,7 +91,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: vnd.c,v 1.286 2022/05/31 14:13:31 riastradh Exp $");
+__KERNEL_RCSID(0, "$NetBSD: vnd.c,v 1.287 2022/09/04 21:56:38 mlelstv Exp $");
#if defined(_KERNEL_OPT)
#include "opt_vnd.h"
@@ -364,11 +364,6 @@
goto done;
}
- if ((flags & FWRITE) && (sc->sc_flags & VNF_READONLY)) {
- error = EROFS;
- goto done;
- }
-
if (sc->sc_flags & VNF_INITED) {
if ((sc->sc_dkdev.dk_openmask & ~(1<<RAW_PART)) != 0) {
/*
Home |
Main Index |
Thread Index |
Old Index