#include <sys/time.h>
#include <sys/types.h>
#include <sys/un.h>
+#include <linux/fs.h>
#include <dlfcn.h>
return true;
}
+bool
+ply_move_mount (const char *source, const char *destination)
+{
+ int rc;
+ ply_trace ("moving mount at \"%s\" to \"%s\"", source, destination);
+
+ if (mount(source, destination, NULL, MS_MOVE, NULL) < 0)
+ {
+ ply_trace("mount(\"%s\", \"%s\", NULL, MS_MOVE, NULL): error: %m", source, destination);
+ return false;
+ }
+ return true;
+}
+
ply_daemon_handle_t *
ply_create_daemon (void)
{
bool ply_copy_file (const char *source, const char *destination);
bool ply_copy_directory (const char *source, const char *destination);
bool ply_unmount_filesystem (const char *directory);
+bool ply_move_mount (const char *source, const char *destination);
ply_daemon_handle_t *ply_create_daemon (void);
bool ply_detach_daemon (ply_daemon_handle_t *handle,