mirror of
https://github.com/clearlinux/systemd-stable.git
synced 2026-10-18 14:23:53 +00:00
readahead: make sure /dev/.systemd/readahead exists
This commit is contained in:
@@ -145,6 +145,9 @@ ReadaheadShared *shared_get(void) {
|
||||
int fd;
|
||||
ReadaheadShared *m = NULL;
|
||||
|
||||
mkdir("/dev/.systemd", 0755);
|
||||
mkdir("/dev/.systemd/readahead", 0755);
|
||||
|
||||
if ((fd = open("/dev/.systemd/readahead/shared", O_CREAT|O_RDWR|O_CLOEXEC, 0644)) < 0) {
|
||||
log_error("Failed to create shared memory segment: %m");
|
||||
goto finish;
|
||||
|
||||
Reference in New Issue
Block a user