mirror of
https://github.com/systemd/systemd.git
synced 2024-12-23 21:35:11 +03:00
logind: write rules files atomically
This commit is contained in:
parent
0a31730e3b
commit
b5ef5549e9
9
TODO
9
TODO
@ -25,19 +25,14 @@ Features:
|
|||||||
|
|
||||||
* kernel: add /proc/sys file exposing CAP_LAST_CAP?
|
* kernel: add /proc/sys file exposing CAP_LAST_CAP?
|
||||||
|
|
||||||
* understand https://bugzilla.redhat.com/show_bug.cgi?id=672194
|
|
||||||
|
|
||||||
* possibly set timezone offset from systemd at init instead
|
|
||||||
of calling hwclock
|
|
||||||
|
|
||||||
* kernel: add device_type = "fb", "fbcon" to class "graphics"
|
* kernel: add device_type = "fb", "fbcon" to class "graphics"
|
||||||
|
|
||||||
|
* understand https://bugzilla.redhat.com/show_bug.cgi?id=672194
|
||||||
|
|
||||||
* readahead: use BTRFS_IOC_DEFRAG_RANGE instead of BTRFS_IOC_DEFRAG ioctl, with START_IO
|
* readahead: use BTRFS_IOC_DEFRAG_RANGE instead of BTRFS_IOC_DEFRAG ioctl, with START_IO
|
||||||
|
|
||||||
* readahead: check whether a btrfs volume includes ssd by checking mount flag "ssd"
|
* readahead: check whether a btrfs volume includes ssd by checking mount flag "ssd"
|
||||||
|
|
||||||
* hostnamed: make file updates atomic
|
|
||||||
|
|
||||||
* support sd_notify() style notificatio when reload is finished (RELOADED=1)
|
* support sd_notify() style notificatio when reload is finished (RELOADED=1)
|
||||||
|
|
||||||
* verify that the AF_UNIX sockets of a service in the fs still exist
|
* verify that the AF_UNIX sockets of a service in the fs still exist
|
||||||
|
@ -634,7 +634,7 @@ static int attach_device(Manager *m, const char *seat, const char *sysfs) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
mkdir_p("/etc/udev/rules.d", 0755);
|
mkdir_p("/etc/udev/rules.d", 0755);
|
||||||
r = write_one_line_file(file, rule);
|
r = write_one_line_file_atomic(file, rule);
|
||||||
if (r < 0)
|
if (r < 0)
|
||||||
goto finish;
|
goto finish;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user