[PATCH] erofs-utils: add command line argument to override uid/gid

Gao Xiang hsiangkao at redhat.com
Thu Apr 1 17:01:32 AEDT 2021


Hi Weiwen,

On Thu, Apr 01, 2021 at 01:29:03PM +0800, Hu Weiwen wrote:
> Also added '--all-root' option to set uid and gid to root conveniently.
> 
> This function can be useful if we want to pack some data owned by user with
> large uid, but we want to use compact inode.
> 
> Signed-off-by: Hu Weiwen <sehuww at mail.scut.edu.cn>

How about using long options for all options, e.g.
 --all-root,
 --force-uid=,
 --force-gid=, (seems squashfs uses such naming).

since I'd like to leave short options for more common usages.

And you might need to update manpage as well, so I can apply it
ASAP...

(Btw, even compact inodes have 16-bit ranges, we could introduce
 some mapping table to remap sparse uid/gid into a compact form,
 if that is what you want, you could help to implement it as well :) )

Thanks,
Gao Xiang



More information about the Linux-erofs mailing list