summaryrefslogtreecommitdiffstats
path: root/sys/ufs/ufs
diff options
context:
space:
mode:
authorpfg <pfg@FreeBSD.org>2013-10-14 18:17:09 +0000
committerpfg <pfg@FreeBSD.org>2013-10-14 18:17:09 +0000
commit7a70d69a08a5f4ff9895f70f638ff44cf2b4c81a (patch)
tree78ffbb146744e3056a951f22f5fb3269efdae90e /sys/ufs/ufs
parent7a627787e40b1e8a6b5f871473bea6149f0f5264 (diff)
downloadFreeBSD-src-7a70d69a08a5f4ff9895f70f638ff44cf2b4c81a.zip
FreeBSD-src-7a70d69a08a5f4ff9895f70f638ff44cf2b4c81a.tar.gz
Make di_blocks unsigned in UFS1 as is the case already for UFS2.
Most of the code between UFS1 and UFS2 is shared so this change is pretty safe. Not only this makes UFS1 and 2 consistent but it also matches what NetBSD and MacOS X have for some years now. Reviewed by: mckusick MFC after: 1 month
Diffstat (limited to 'sys/ufs/ufs')
-rw-r--r--sys/ufs/ufs/dinode.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/ufs/ufs/dinode.h b/sys/ufs/ufs/dinode.h
index 6d06bde..6061c41 100644
--- a/sys/ufs/ufs/dinode.h
+++ b/sys/ufs/ufs/dinode.h
@@ -179,7 +179,7 @@ struct ufs1_dinode {
ufs1_daddr_t di_db[NDADDR]; /* 40: Direct disk blocks. */
ufs1_daddr_t di_ib[NIADDR]; /* 88: Indirect disk blocks. */
u_int32_t di_flags; /* 100: Status flags (chflags). */
- int32_t di_blocks; /* 104: Blocks actually held. */
+ u_int32_t di_blocks; /* 104: Blocks actually held. */
u_int32_t di_gen; /* 108: Generation number. */
u_int32_t di_uid; /* 112: File owner. */
u_int32_t di_gid; /* 116: File group. */
OpenPOWER on IntegriCloud