Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/msdosfs Add some minimal validation of the fsinfo.
details: https://anonhg.NetBSD.org/src/rev/4d0863a0bb02
branches: trunk
changeset: 519631:4d0863a0bb02
user: augustss <augustss%NetBSD.org@localhost>
date: Sat Dec 22 19:45:54 2001 +0000
description:
Add some minimal validation of the fsinfo.
diffstat:
sys/msdosfs/msdosfs_vfsops.c | 11 ++++++++---
1 files changed, 8 insertions(+), 3 deletions(-)
diffs (33 lines):
diff -r d28414d66f0a -r 4d0863a0bb02 sys/msdosfs/msdosfs_vfsops.c
--- a/sys/msdosfs/msdosfs_vfsops.c Sat Dec 22 19:39:42 2001 +0000
+++ b/sys/msdosfs/msdosfs_vfsops.c Sat Dec 22 19:45:54 2001 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: msdosfs_vfsops.c,v 1.77 2001/11/10 13:26:46 lukem Exp $ */
+/* $NetBSD: msdosfs_vfsops.c,v 1.78 2001/12/22 19:45:54 augustss Exp $ */
/*-
* Copyright (C) 1994, 1995, 1997 Wolfgang Solfrank.
@@ -48,7 +48,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: msdosfs_vfsops.c,v 1.77 2001/11/10 13:26:46 lukem Exp $");
+__KERNEL_RCSID(0, "$NetBSD: msdosfs_vfsops.c,v 1.78 2001/12/22 19:45:54 augustss Exp $");
#if defined(_KERNEL_OPT)
#include "opt_quota.h"
@@ -659,8 +659,13 @@
}
/*
- * Check and validate (or perhaps invalidate?) the fsinfo structure? XXX
+ * Check and validate (or perhaps invalidate?) the fsinfo structure?
+ * XXX
*/
+ if (pmp->pm_fsinfo) {
+ if (pmp->pm_nxtfree == (u_long)-1)
+ pmp->pm_fsinfo = 0;
+ }
/*
* Allocate memory for the bitmap of allocated clusters, and then
Home |
Main Index |
Thread Index |
Old Index