initfs: Remove uid and gid fields for inodes

The initfs creation code always puts 0 in them.
This commit is contained in:
bjorn3
2026-02-17 20:00:04 +01:00
parent 3e62ff9ec7
commit edd1c249e9
5 changed files with 4 additions and 17 deletions
-6
View File
@@ -147,12 +147,6 @@ impl<'initfs> InodeStruct<'initfs> {
pub fn mode(&self) -> u16 {
(self.inode.type_and_mode.get() & MODE_MASK) as u16
}
pub fn uid(&self) -> u32 {
self.inode.uid.get()
}
pub fn gid(&self) -> u32 {
self.inode.gid.get()
}
fn ty(&self) -> Option<InodeType> {
let raw = (self.inode.type_and_mode.get() & TYPE_MASK) >> TYPE_SHIFT;
-2
View File
@@ -87,8 +87,6 @@ pub struct InodeHeader {
pub type_and_mode: U32,
pub length: U32,
pub offset: Offset,
pub uid: U32,
pub gid: U32,
}
pub const MODE_MASK: u32 = 0xFFF;