autofssrv_cmd.c revision cd2327153a9ac55f3cf470c294691506096bd1eb
0N/A along with this program. If not, see <http://www.gnu.org/licenses/>.
0N/A#include "responder/common/responder.h"
0N/A#include "responder/common/responder_packet.h"
0N/A#include "responder/autofs/autofs_private.h"
0N/A#include "db/sysdb_autofs.h"
return EOK;
static errno_t
char *mapname,
int hret;
return EOK;
return ENOENT;
return EIO;
if (!map) {
static errno_t
int hret;
return EINVAL;
return EIO;
return EOK;
int hret;
static struct tevent_req *
const char *rawname,
const char *rawname;
if (!cmdctx) {
return ENOMEM;
goto done;
goto done;
if (!req) {
goto done;
done:
struct setautomntent_state {
char *mapname;
struct setautomntent_lookup_ctx {
bool returned_to_mainloop;
char *mapname;
static errno_t
void *pvt)
map);
if (!te) {
static errno_t
char *mapname,
static struct tevent_req *
const char *rawname,
char *domname;
if (!req) {
return NULL;
if (!dctx) {
goto fail;
goto fail;
if (domname) {
goto fail;
goto fail;
goto fail;
return req;
return req;
goto fail;
goto fail;
goto fail;
goto fail;
goto fail;
if (!lookup_ctx) {
goto fail;
goto fail;
return req;
goto fail;
return req;
goto fail;
return req;
fail:
return req;
static errno_t
char *mapname,
return ENOENT;
static errno_t
static errno_t
while (dom) {
if (!dom) break;
return EIO;
return ret;
return ret;
return ENOENT;
return EAGAIN;
return ret;
return EIO;
return EOK;
if (!map) {
return ENOMEM;
return ENOMEM;
return ENOMEM;
return ENOENT;
static errno_t
SYSDB_CACHE_EXPIRE, 0);
return EOK;
goto error;
if (!req) {
goto error;
if(!cb_ctx) {
goto error;
return EAGAIN;
return ret;
return EOK;
char *err_msg;
&err_msg);
if (err_maj) {
static errno_t
return EOK;
static errno_t
static errno_t
size_t c = 0;
if (!cmdctx) {
return ENOMEM;
if (!actx) {
return EIO;
goto done;
goto done;
goto done;
goto done;
goto done;
goto done;
goto done;
goto done;
goto done;
done:
goto done;
goto done;
goto done;
done:
static errno_t
return ret;
goto done;
goto done;
nentries = 0;
for (i=0; i < stop; i++) {
cursor++;
nentries++;
rp = 0;
done:
return EOK;
static errno_t
const char *key;
const char *value;
return EINVAL;
return ret;
return EOK;
static errno_t
const char *key);
size_t c = 0;
if (!cmdctx) {
return ENOMEM;
if (!actx) {
return EIO;
goto done;
goto done;
goto done;
goto done;
goto done;
goto done;
goto done;
goto done;
goto done;
goto done;
goto done;
goto done;
done:
goto done;
goto done;
goto done;
done:
static errno_t
const char *key)
size_t i;
const char *value;
return ret;
goto done;
goto done;
goto done;
rp = 0;
done:
return EOK;
return ret;
return EOK;
return autofs_cli_protocol_version;
return autofs_cmds;