Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/fs/udf A not rewritable disc can be pseudo-overwritable....
details: https://anonhg.NetBSD.org/src/rev/2bdb49a6998f
branches: trunk
changeset: 761272:2bdb49a6998f
user: reinoud <reinoud%NetBSD.org@localhost>
date: Sat Jan 22 18:02:18 2011 +0000
description:
A not rewritable disc can be pseudo-overwritable. A pseudo-overwritable disc
can overwrite its logical volume integrity sequence so no need to make it
append-only for this class of discs.
diffstat:
sys/fs/udf/udf_subr.c | 9 +++++----
1 files changed, 5 insertions(+), 4 deletions(-)
diffs (37 lines):
diff -r 5ec4ae9bd42a -r 2bdb49a6998f sys/fs/udf/udf_subr.c
--- a/sys/fs/udf/udf_subr.c Sat Jan 22 17:31:31 2011 +0000
+++ b/sys/fs/udf/udf_subr.c Sat Jan 22 18:02:18 2011 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: udf_subr.c,v 1.112 2011/01/22 14:51:43 reinoud Exp $ */
+/* $NetBSD: udf_subr.c,v 1.113 2011/01/22 18:02:18 reinoud Exp $ */
/*
* Copyright (c) 2006, 2008 Reinoud Zandijk
@@ -29,7 +29,7 @@
#include <sys/cdefs.h>
#ifndef lint
-__KERNEL_RCSID(0, "$NetBSD: udf_subr.c,v 1.112 2011/01/22 14:51:43 reinoud Exp $");
+__KERNEL_RCSID(0, "$NetBSD: udf_subr.c,v 1.113 2011/01/22 18:02:18 reinoud Exp $");
#endif /* not lint */
@@ -1460,7 +1460,6 @@
logvol_integrity = udf_rw32(ump->logvol_integrity->integrity_type);
if (logvol_integrity == UDF_INTEGRITY_CLOSED) {
if ((space < 3) && (lvflag & UDF_APPENDONLY_LVINT)) {
- /* don't allow this logvol to be opened */
/* TODO extent LVINT space if possible */
return EROFS;
}
@@ -2056,7 +2055,9 @@
ump->lvopen = UDF_WRITE_LVINT;
ump->lvclose = UDF_WRITE_LVINT;
if ((ump->discinfo.mmc_cur & MMC_CAP_REWRITABLE) == 0)
- ump->lvopen |= UDF_APPENDONLY_LVINT;
+ ump->lvopen |= UDF_APPENDONLY_LVINT;
+ if ((ump->discinfo.mmc_cur & MMC_CAP_PSEUDOOVERWRITE))
+ ump->lvopen &= ~UDF_APPENDONLY_LVINT;
}
/*
Home |
Main Index |
Thread Index |
Old Index