mirror of
https://github.com/morgan9e/systemd
synced 2026-04-14 08:25:20 +09: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