* Fixed a few problems reported by Marcus - thanks for proofreading!
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@26218 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
parent
3b83493b10
commit
bac6cc8ad7
@ -132,7 +132,7 @@ struct ext2_block_group {
|
|||||||
|
|
||||||
uint32 InodeTable() const
|
uint32 InodeTable() const
|
||||||
{ return B_LENDIAN_TO_HOST_INT32(inode_table); }
|
{ return B_LENDIAN_TO_HOST_INT32(inode_table); }
|
||||||
};
|
} _PACKED;
|
||||||
|
|
||||||
#define EXT2_DIRECT_BLOCKS 12
|
#define EXT2_DIRECT_BLOCKS 12
|
||||||
#define EXT2_ROOT_NODE 2
|
#define EXT2_ROOT_NODE 2
|
||||||
@ -143,7 +143,7 @@ struct ext2_data_stream {
|
|||||||
uint32 indirect;
|
uint32 indirect;
|
||||||
uint32 double_indirect;
|
uint32 double_indirect;
|
||||||
uint32 triple_indirect;
|
uint32 triple_indirect;
|
||||||
};
|
} _PACKED;
|
||||||
|
|
||||||
struct ext2_inode {
|
struct ext2_inode {
|
||||||
uint16 mode;
|
uint16 mode;
|
||||||
@ -196,13 +196,13 @@ struct ext2_inode {
|
|||||||
return B_LENDIAN_TO_HOST_INT32(size);
|
return B_LENDIAN_TO_HOST_INT32(size);
|
||||||
}
|
}
|
||||||
|
|
||||||
uint16 UserID() const
|
uint32 UserID() const
|
||||||
{
|
{
|
||||||
return B_LENDIAN_TO_HOST_INT16(uid)
|
return B_LENDIAN_TO_HOST_INT16(uid)
|
||||||
| (B_LENDIAN_TO_HOST_INT16(uid_high) << 16);
|
| (B_LENDIAN_TO_HOST_INT16(uid_high) << 16);
|
||||||
}
|
}
|
||||||
|
|
||||||
uint16 GroupID() const
|
uint32 GroupID() const
|
||||||
{
|
{
|
||||||
return B_LENDIAN_TO_HOST_INT16(gid)
|
return B_LENDIAN_TO_HOST_INT16(gid)
|
||||||
| (B_LENDIAN_TO_HOST_INT16(gid_high) << 16);
|
| (B_LENDIAN_TO_HOST_INT16(gid_high) << 16);
|
||||||
|
Loading…
Reference in New Issue
Block a user