[PATCH] makedevs: make special node creation idempotent
Arnout Vandecappelle
arnout at mind.be
Sat Nov 5 14:44:24 UTC 2016
On 05-11-16 15:36, walter harms wrote:
>
> Am 05.11.2016 14:37, schrieb Arnout Vandecappelle (Essensium/Mind):
>> > When makedevs is called for a second time with the same device file, it
>> > will fail because the files already exist and mknod() gives -EEXISTS.
>> >
>> > To avoid this, check if the file already exists and if so, if it is of
>> > the right type. The chmod and chown changes are still done.
>> >
>
> i am not familiar with that program. Is this std. behavior ?
makedevs is not a standard program, it is busybox-specific. So there is no
standard behaviour.
We use it in Buildroot to populate /dev with standard device nodes. If you
re-run the /dev population step, (e.g. rebuild) it will fail because of this issue.
Regards,
Arnout
>
> re,
> wh
>
>
--
Arnout Vandecappelle arnout at mind be
Senior Embedded Software Architect +32-16-286500
Essensium/Mind http://www.mind.be
G.Geenslaan 9, 3001 Leuven, Belgium BE 872 984 063 RPR Leuven
LinkedIn profile: http://www.linkedin.com/in/arnoutvandecappelle
GPG fingerprint: 7493 020B C7E3 8618 8DEC 222C 82EB F404 F9AC 0DDF
More information about the busybox
mailing list