From 6624768c9c39ab409edebe07cb06ecd93cc6f3ed Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Sun, 26 Sep 2010 15:50:14 +0200 Subject: readahead: add interface to sd-daemon.[ch] to control readahead --- src/sd-daemon.h | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'src/sd-daemon.h') diff --git a/src/sd-daemon.h b/src/sd-daemon.h index 008a44c1d2..2fbfe955ce 100644 --- a/src/sd-daemon.h +++ b/src/sd-daemon.h @@ -254,6 +254,16 @@ int sd_notifyf(int unset_environment, const char *format, ...) _sd_printf_attr_( */ int sd_booted(void) _sd_hidden_; +/* + Controls ongoing disk read-ahead operations during boot-up. The argument + must be a string, and either "cancel", "done" or "noreplay". + + cancel = terminate read-ahead data collection, drop collected information + done = terminate read-ahead data collection, keep collected information + noreplay = terminate read-ahead replay +*/ +int sd_readahead(const char *action); + #ifdef __cplusplus } #endif -- cgit v1.2.3-54-g00ecf