doveadm-mount.c revision 6f5dca63ec5e5abeb9a5731e6e1c51ba3f007fe3
/* Copyright (c) 2012 Dovecot authors, see the included COPYING file */
#include "lib.h"
#include "mountpoint-list.h"
#include "doveadm.h"
#include "doveadm-print.h"
extern struct doveadm_cmd doveadm_cmd_mount[];
static struct mountpoint_list *mountpoint_list_get(void)
{
const char *perm_path, *state_path;
}
{
struct mountpoint_list *mountpoints;
struct mountpoint_list_iter *iter;
struct mountpoint_list_rec *rec;
bool mounts_known;
if (argc > 2)
doveadm_print_header_simple("state");
continue;
doveadm_print("!");
else
doveadm_print(" ");
}
}
static bool mount_path_get_wildcard(const char **path)
{
unsigned int len;
return TRUE;
} else {
return FALSE;
}
}
{
struct mountpoint_list *mountpoints;
struct mountpoint_list_rec rec;
if (argc > 3)
} else {
}
(void)mountpoint_list_save(mountpoints);
}
{
struct mountpoint_list *mountpoints;
const char *mount_path;
if (argc != 2)
(void)mount_path_get_wildcard(&mount_path);
else
(void)mountpoint_list_save(mountpoints);
}
struct doveadm_cmd doveadm_cmd_mount[] = {
};
{
unsigned int i;
for (i = 0; i < N_ELEMENTS(doveadm_cmd_mount); i++) {
help(&doveadm_cmd_mount[i]);
}
i_unreached();
}
void doveadm_register_mount_commands(void)
{
unsigned int i;
for (i = 0; i < N_ELEMENTS(doveadm_cmd_mount); i++)
}