Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions libs/libautomount/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,11 @@ target_include_directories(${DMOD_MODULE_NAME}_if INTERFACE
# dmblkid - local sibling (repository root): headers from its _if target
target_link_libraries(${DMOD_MODULE_NAME} dmblkid_if)

# dmvfs: dmvfs_mount_fs()/dmvfs_unmount_fs() - dmvfs is built into the
# firmware, only its header is needed (dmvfs.h includes dmfsi.h, hence dmfsi)
dmod_link_modules(${DMOD_MODULE_NAME}
dmfsi
dmosi
dmvfs
libsystemd
)
8 changes: 1 addition & 7 deletions libs/libautomount/src/libautomount_os.c
Original file line number Diff line number Diff line change
Expand Up @@ -5,18 +5,12 @@
* The host tests replace this file with fakes (there is no dmvfs there).
*/
#include "dmod.h"
#include "dmvfs.h"
#include "libautomount_core.h"
#include <errno.h>

#define DIR_MODE 0755

/*
* dmvfs is built into the firmware (it is not a module), its API is
* resolved from the system like the rest of the built-in API.
*/
DMOD_BUILTIN_API( dmvfs, 1.0, bool, _mount_fs, (const char* fs_name, const char* mount_point, const char* config) );
DMOD_BUILTIN_API( dmvfs, 1.0, bool, _unmount_fs, (const char* mount_point) );

/* One per library - shared by every automount service using it. */
static void* g_lock;

Expand Down
Loading