Whamcloud - gitweb
git://git.whamcloud.com
/
tools
/
e2fsprogs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
71ba137
)
mke2fs: fix "mke2fs -d /path/to/files" to support 32-bit uids and gids
author
Theodore Ts'o
<tytso@mit.edu>
Fri, 20 Dec 2019 19:58:41 +0000
(14:58 -0500)
committer
Theodore Ts'o
<tytso@mit.edu>
Fri, 20 Dec 2019 19:58:41 +0000
(14:58 -0500)
https://github.com/tytso/e2fsprogs/issues/29
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
misc/create_inode.c
patch
|
blob
|
history
diff --git
a/misc/create_inode.c
b/misc/create_inode.c
index
0091b72
..
5161d5e
100644
(file)
--- 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;