Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/fs/msdosfs ((u_long)-1) will not always be 0xffffffff, w...
details: https://anonhg.NetBSD.org/src/rev/1007a7749b5e
branches: trunk
changeset: 782491:1007a7749b5e
user: jakllsch <jakllsch%NetBSD.org@localhost>
date: Sun Nov 04 17:16:37 2012 +0000
description:
((u_long)-1) will not always be 0xffffffff, which is what we actually
want to test against to determine if the FSInfo block's next free
cluster suggestion is valid
diffstat:
sys/fs/msdosfs/msdosfs_vfsops.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (27 lines):
diff -r 5e81e82e2bdf -r 1007a7749b5e sys/fs/msdosfs/msdosfs_vfsops.c
--- a/sys/fs/msdosfs/msdosfs_vfsops.c Sun Nov 04 16:29:12 2012 +0000
+++ b/sys/fs/msdosfs/msdosfs_vfsops.c Sun Nov 04 17:16:37 2012 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: msdosfs_vfsops.c,v 1.97 2012/10/03 23:32:43 jakllsch Exp $ */
+/* $NetBSD: msdosfs_vfsops.c,v 1.98 2012/11/04 17:16:37 jakllsch 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.97 2012/10/03 23:32:43 jakllsch Exp $");
+__KERNEL_RCSID(0, "$NetBSD: msdosfs_vfsops.c,v 1.98 2012/11/04 17:16:37 jakllsch Exp $");
#if defined(_KERNEL_OPT)
#include "opt_compat_netbsd.h"
@@ -763,7 +763,7 @@
* XXX
*/
if (pmp->pm_fsinfo) {
- if (pmp->pm_nxtfree == (u_long)-1)
+ if (pmp->pm_nxtfree == 0xffffffffUL)
pmp->pm_fsinfo = 0;
}
Home |
Main Index |
Thread Index |
Old Index