1 /* SPDX-License-Identifier: LGPL-2.1+ */
5 This file is part of systemd.
7 Copyright 2010 Lennart Poettering
10 typedef struct Automount Automount
;
14 typedef enum AutomountResult
{
16 AUTOMOUNT_FAILURE_RESOURCES
,
17 AUTOMOUNT_FAILURE_START_LIMIT_HIT
,
18 AUTOMOUNT_FAILURE_MOUNT_START_LIMIT_HIT
,
19 _AUTOMOUNT_RESULT_MAX
,
20 _AUTOMOUNT_RESULT_INVALID
= -1
26 AutomountState state
, deserialized_state
;
29 usec_t timeout_idle_usec
;
32 sd_event_source
*pipe_event_source
;
33 mode_t directory_mode
;
39 sd_event_source
*expire_event_source
;
41 AutomountResult result
;
44 extern const UnitVTable automount_vtable
;
46 const char* automount_result_to_string(AutomountResult i
) _const_
;
47 AutomountResult
automount_result_from_string(const char *s
) _pure_
;
49 DEFINE_CAST(AUTOMOUNT
, Automount
);