Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
steam
systemd
Commits
4030d7a9
Commit
4030d7a9
authored
Sep 24, 2010
by
Lennart Poettering
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
readahead: take file system root on command line
parent
c1480dae
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
2 deletions
+4
-2
src/readahead-collect.c
src/readahead-collect.c
+2
-1
src/readahead-replay.c
src/readahead-replay.c
+2
-1
No files found.
src/readahead-collect.c
View file @
4030d7a9
...
...
@@ -437,11 +437,12 @@ finish:
}
int
main
(
int
argc
,
char
*
argv
[])
{
log_set_target
(
LOG_TARGET_SYSLOG_OR_KMSG
);
log_parse_environment
();
log_open
();
if
(
collect
(
"/"
)
<
0
)
if
(
collect
(
argc
>=
2
?
argv
[
1
]
:
"/"
)
<
0
)
return
1
;
return
0
;
...
...
src/readahead-replay.c
View file @
4030d7a9
...
...
@@ -201,11 +201,12 @@ finish:
}
int
main
(
int
argc
,
char
*
argv
[])
{
log_set_target
(
LOG_TARGET_SYSLOG_OR_KMSG
);
log_parse_environment
();
log_open
();
if
(
replay
(
"/"
)
<
0
)
if
(
replay
(
argc
>=
2
?
argv
[
1
]
:
"/"
)
<
0
)
return
1
;
return
0
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment