summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorpfg <pfg@FreeBSD.org>2013-06-09 01:38:51 +0000
committerpfg <pfg@FreeBSD.org>2013-06-09 01:38:51 +0000
commita8d161091f0089b20df3607d8f4f71e5c1927cd2 (patch)
tree68318da8af58057e52967a991fc42fdf724938b5
parent2d8b3ad7fac17b8ea0626d96096ad53931194fe6 (diff)
downloadFreeBSD-src-a8d161091f0089b20df3607d8f4f71e5c1927cd2.zip
FreeBSD-src-a8d161091f0089b20df3607d8f4f71e5c1927cd2.tar.gz
e2fs_bpg and e2fs_isize are always unsigned.
The superblock in ext2fs defines all the fields as unsigned but for some reason the in-memory superblock was carrying e2fs_bpg and e2fs_isize as signed. We should preserve the specified types for consistency. MFC after: 5 days
-rw-r--r--sys/fs/ext2fs/ext2fs.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/fs/ext2fs/ext2fs.h b/sys/fs/ext2fs/ext2fs.h
index 361e61f..225d0c1 100644
--- a/sys/fs/ext2fs/ext2fs.h
+++ b/sys/fs/ext2fs/ext2fs.h
@@ -153,7 +153,7 @@ struct m_ext2fs {
char e2fs_fmod; /* super block modified flag */
uint32_t e2fs_bsize; /* Block size */
uint32_t e2fs_bshift; /* calc of logical block no */
- int32_t e2fs_bpg; /* Number of blocks per group */
+ uint32_t e2fs_bpg; /* Number of blocks per group */
int64_t e2fs_qbmask; /* = s_blocksize -1 */
uint32_t e2fs_fsbtodb; /* Shift to get disk block */
uint32_t e2fs_ipg; /* Number of inodes per group */
@@ -164,7 +164,7 @@ struct m_ext2fs {
uint32_t e2fs_fpg; /* Number of fragments per group */
uint32_t e2fs_gdbcount; /* Number of group descriptors */
uint32_t e2fs_gcount; /* Number of groups */
- int32_t e2fs_isize; /* Size of inode */
+ uint32_t e2fs_isize; /* Size of inode */
uint32_t e2fs_total_dir; /* Total number of directories */
uint8_t *e2fs_contigdirs; /* (u) # of contig. allocated dirs */
char e2fs_wasvalid; /* valid at mount time */
OpenPOWER on IntegriCloud