Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/fs/ntfs KASSERT was not the right thing here. Instead on...
details: https://anonhg.NetBSD.org/src/rev/d7d31d4fd51d
branches: trunk
changeset: 555185:d7d31d4fd51d
user: christos <christos%NetBSD.org@localhost>
date: Tue Nov 11 00:44:16 2003 +0000
description:
KASSERT was not the right thing here. Instead only set the type if f_type
has been inititialized. Reported by pooka
diffstat:
sys/fs/ntfs/ntfs_vfsops.c | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
diffs (29 lines):
diff -r 01f41de2f3b5 -r d7d31d4fd51d sys/fs/ntfs/ntfs_vfsops.c
--- a/sys/fs/ntfs/ntfs_vfsops.c Mon Nov 10 21:59:58 2003 +0000
+++ b/sys/fs/ntfs/ntfs_vfsops.c Tue Nov 11 00:44:16 2003 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: ntfs_vfsops.c,v 1.13 2003/10/25 19:10:34 christos Exp $ */
+/* $NetBSD: ntfs_vfsops.c,v 1.14 2003/11/11 00:44:16 christos Exp $ */
/*-
* Copyright (c) 1998, 1999 Semen Ustimenko
@@ -29,7 +29,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: ntfs_vfsops.c,v 1.13 2003/10/25 19:10:34 christos Exp $");
+__KERNEL_RCSID(0, "$NetBSD: ntfs_vfsops.c,v 1.14 2003/11/11 00:44:16 christos Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@@ -993,8 +993,8 @@
#endif
fp->f_vp = vp;
vp->v_data = fp;
- KASSERT(f_type != VBAD);
- vp->v_type = f_type;
+ if (f_type != VBAD)
+ vp->v_type = f_type;
if (ino == NTFS_ROOTINO)
vp->v_flag |= VROOT;
Home |
Main Index |
Thread Index |
Old Index