[systemd-devel] [PATCH] udev: don't create symlink or rename if it already exists

Kay Sievers kay at vrfy.org
Tue Feb 12 07:08:50 PST 2013


On Tue, Feb 12, 2013 at 3:12 PM, Robert Milasan <rmilasan at suse.com> wrote:
> On Tue, 12 Feb 2013 15:09:18 +0100 "Kay Sievers" <kay at vrfy.org> wrote:
>> My wish? Will you update the patch, or should I do it? :)

> Sorry, was referring to patch, it looks good to me, but I'm not really
> a developer, so it's up to you to change it.

Looks like this now:
  stat("/dev/disk/by-id", {st_mode=S_IFDIR|0755, st_size=80, ...}) = 0
  symlink("../../sda", "/dev/disk/by-id/ata-INTEL...N.tmp-b8:0") = 0
  rename("/dev/disk/by-id/ata-INTEL...N.tmp-b8:0",
"/dev/disk/by-id/ata-INTEL...N") = 0

http://cgit.freedesktop.org/systemd/systemd/commit/?id=38d70045d15d5bc463c097a6983a23502ff8a837

Thanks,
Kay


More information about the systemd-devel mailing list