Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/ufs/ffs Declare fs_old_flags and fs_flags as unsigned.
details: https://anonhg.NetBSD.org/src/rev/a283be4c04db
branches: trunk
changeset: 552662:a283be4c04db
user: dbj <dbj%NetBSD.org@localhost>
date: Mon Sep 29 20:34:23 2003 +0000
description:
Declare fs_old_flags and fs_flags as unsigned.
This fixes a bug introduced in revision 1.120 of ffs_vfsops dated 2003/09/13
which results in fs_flags having a value of 0x7fffff00 when a superblock
is updated to use the new layout.
Discussed in http://mail-index.netbsd.org/tech-kern/2003/09/28/0003.html
diffstat:
sys/ufs/ffs/fs.h | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (27 lines):
diff -r ad41e9d714a1 -r a283be4c04db sys/ufs/ffs/fs.h
--- a/sys/ufs/ffs/fs.h Mon Sep 29 20:04:25 2003 +0000
+++ b/sys/ufs/ffs/fs.h Mon Sep 29 20:34:23 2003 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: fs.h,v 1.34 2003/08/21 14:41:00 dsl Exp $ */
+/* $NetBSD: fs.h,v 1.35 2003/09/29 20:34:23 dbj Exp $ */
/*
* Copyright (c) 1982, 1986, 1993
@@ -272,7 +272,7 @@
int8_t fs_fmod; /* super block modified flag */
int8_t fs_clean; /* file system is clean flag */
int8_t fs_ronly; /* mounted read-only flag */
- int8_t fs_old_flags; /* see FS_ flags below */
+ uint8_t fs_old_flags; /* see FS_ flags below */
u_char fs_fsmnt[MAXMNTLEN]; /* name mounted on */
u_char fs_volname[MAXVOLLEN]; /* volume name */
uint64_t fs_swuid; /* system-wide uid */
@@ -300,7 +300,7 @@
int32_t fs_avgfpdir; /* expected # of files per directory */
int32_t fs_save_cgsize; /* save real cg size to use fs_bsize */
int32_t fs_sparecon32[26]; /* reserved for future constants */
- int32_t fs_flags; /* see FS_ flags below */
+ uint32_t fs_flags; /* see FS_ flags below */
int32_t fs_contigsumsize; /* size of cluster summary array */
int32_t fs_maxsymlinklen; /* max length of an internal symlink */
int32_t fs_old_inodefmt; /* format of on-disk inodes */
Home |
Main Index |
Thread Index |
Old Index