[PATCH] mkfs.ubifs: Add support for symlinks in device table

David Engraf david.engraf at sysgo.com
Thu May 18 08:03:42 PDT 2017


Hi Richard,

Am 18.05.2017 um 16:47 schrieb Richard Weinberger:
> David,
> 
> Am 18.05.2017 um 16:38 schrieb David Engraf:
>>> I'm confused, permissions of a symlink are irrelevant.
>>> What is the usecase?
>>>
>>
>> You're right the permissions are ignored for symlinks but the user and group id is used. Without this flag mkfs.ubifs takes uid/gid from the local system.
> 
> IMHO we can just force the uid/gid to 0, no?

Why? It doesn't make sense to have all uid/gid to 0. This should be 
decided by the user. The purpose of the device table file is to allow 
the user to specify the permissions/uid/gid to his requirements. 
mkfs.jffs2 handles it like that as well.

Best regards
- David




More information about the linux-mtd mailing list