diff options
author | pfg <pfg@FreeBSD.org> | 2013-01-22 18:54:03 +0000 |
---|---|---|
committer | pfg <pfg@FreeBSD.org> | 2013-01-22 18:54:03 +0000 |
commit | 646ebf1c313f6d3dc7bcbf6c0e440f29eba45549 (patch) | |
tree | 322db2ef8acab2121389fe52d9299a78e91a9707 /sys/fs/ext2fs/ext2_alloc.c | |
parent | 611d98380eb5b904ae2f05382e59e0909b5f45f3 (diff) | |
download | FreeBSD-src-646ebf1c313f6d3dc7bcbf6c0e440f29eba45549.zip FreeBSD-src-646ebf1c313f6d3dc7bcbf6c0e440f29eba45549.tar.gz |
ext2fs: make some inode fields match the ext2 spec.
Ext2fs uses unsigned fields in its dinode struct.
FreeBSD can have negative values in some of those
fields and the inode is meant to interact with the
system so we have never respected the unsigned
nature of most of those fields.
Block numbers and the NFS generation number do
not need to be signed so redefine them as
unsigned to better match the on-disk information.
MFC after: 1 week
Diffstat (limited to 'sys/fs/ext2fs/ext2_alloc.c')
-rw-r--r-- | sys/fs/ext2fs/ext2_alloc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/fs/ext2fs/ext2_alloc.c b/sys/fs/ext2fs/ext2_alloc.c index 2fec38d..0f32795 100644 --- a/sys/fs/ext2fs/ext2_alloc.c +++ b/sys/fs/ext2fs/ext2_alloc.c @@ -169,7 +169,7 @@ ext2_reallocblks(ap) struct inode *ip; struct vnode *vp; struct buf *sbp, *ebp; - int32_t *bap, *sbap, *ebap = 0; + uint32_t *bap, *sbap, *ebap = 0; struct ext2mount *ump; struct cluster_save *buflist; struct indir start_ap[NIADDR + 1], end_ap[NIADDR + 1], *idp; |