[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <20191220201724.264430-1-tytso@mit.edu>
Date: Fri, 20 Dec 2019 15:17:23 -0500
From: "Theodore Ts'o" <tytso@....edu>
To: Ext4 Developers List <linux-ext4@...r.kernel.org>
Cc: "Theodore Ts'o" <tytso@....edu>
Subject: [PATCH 1/2] mke2fs: fix "mke2fs -d /path/to/files" to support 32-bit uids and gids
https://github.com/tytso/e2fsprogs/issues/29
Signed-off-by: Theodore Ts'o <tytso@....edu>
---
misc/create_inode.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/misc/create_inode.c b/misc/create_inode.c
index 0091b723..5161d5e3 100644
--- a/misc/create_inode.c
+++ b/misc/create_inode.c
@@ -121,7 +121,9 @@ static errcode_t set_inode_extra(ext2_filsys fs, ext2_ino_t ino,
}
inode.i_uid = st->st_uid;
+ ext2fs_set_i_uid_high(inode, st->st_uid >> 16);
inode.i_gid = st->st_gid;
+ ext2fs_set_i_gid_high(inode, st->st_gid >> 16);
inode.i_mode |= st->st_mode;
inode.i_atime = st->st_atime;
inode.i_mtime = st->st_mtime;
--
2.24.1
Powered by blists - more mailing lists