diff options
author | Lennart Poettering <lennart@poettering.net> | 2015-04-28 17:13:23 +0200 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2015-04-28 17:30:00 +0200 |
commit | 96d9117ad2db7d8c13f7898127eee8939e88daf1 (patch) | |
tree | 182c7c733b81452f4099fe4c33a2e3bf060b2051 /src/fsckd/fsckd.h | |
parent | e7a3aa3df640993ce9aace39b946543305f3af53 (diff) |
fsck: remove fsckd again, but keep the door open for external replacement
For a longer discussion see this:
http://lists.freedesktop.org/archives/systemd-devel/2015-April/030175.html
This introduces /run/systemd/fsck.progress as a simply
AF_UNIX/SOCK_STREAM socket. If it exists and is connectable we'll
connect fsck's -c switch with it. If external programs want to get
progress data they should hence listen on this socket and will get
all they need via that socket. To get information about the connecting
fsck client they should use SO_PEERCRED.
Unless /run/systemd/fsck.progress is around and connectable this change
reverts back to v219 behaviour where we'd forward fsck output to
/dev/console on our own.
Diffstat (limited to 'src/fsckd/fsckd.h')
-rw-r--r-- | src/fsckd/fsckd.h | 38 |
1 files changed, 0 insertions, 38 deletions
diff --git a/src/fsckd/fsckd.h b/src/fsckd/fsckd.h deleted file mode 100644 index 8239273dae..0000000000 --- a/src/fsckd/fsckd.h +++ /dev/null @@ -1,38 +0,0 @@ -/*-*- Mode: C; c-basic-offset: 8; indent-tabs-mode: nil -*-*/ - -/*** - This file is part of systemd. - - Copyright 2015 Canonical - - Author: - Didier Roche <didrocks@ubuntu.com> - - systemd is free software; you can redistribute it and/or modify it - under the terms of the GNU Lesser General Public License as published by - the Free Software Foundation; either version 2.1 of the License, or - (at your option) any later version. - - systemd is distributed in the hope that it will be useful, but - WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - Lesser General Public License for more details. - - You should have received a copy of the GNU Lesser General Public License - along with systemd; If not, see <http://www.gnu.org/licenses/>. -***/ - -#define FSCKD_SOCKET_PATH "/run/systemd/fsckd" - -#include "libudev.h" - -typedef struct FsckProgress { - dev_t devnum; - size_t cur; - size_t max; - int pass; -} FsckProgress; - -typedef struct FsckdMessage { - uint8_t cancel; -} FsckdMessage; |