#include "include/cephfs/libcephfs.h"
-
struct ceph_mount_info
{
public:
{
if (!cmount->is_mounted())
return -ENOTCONN;
+ if (flags & ~CEPH_REQ_FLAG_MASK)
+ return -EINVAL;
return cmount->get_client()->readdirplus_r(reinterpret_cast<dir_result_t*>(dirp), de, stx, want, flags, out);
}
{
if (!cmount->is_mounted())
return -ENOTCONN;
+ if (flags & ~CEPH_REQ_FLAG_MASK)
+ return -EINVAL;
return cmount->get_client()->statx(path, stx, cmount->default_perms,
want, flags);
}
{
if (!cmount->is_mounted())
return -ENOTCONN;
+ if (flags & ~CEPH_REQ_FLAG_MASK)
+ return -EINVAL;
return cmount->get_client()->setattrx(relpath, stx, mask,
cmount->default_perms, flags);
}
{
if (!cmount->is_mounted())
return -ENOTCONN;
+ if (flags & ~CEPH_REQ_FLAG_MASK)
+ return -EINVAL;
return cmount->get_client()->fstatx(fd, stx, cmount->default_perms,
want, flags);
}
struct ceph_statx *stx, unsigned want,
unsigned flags, const UserPerm *perms)
{
+ if (flags & ~CEPH_REQ_FLAG_MASK)
+ return -EINVAL;
return (cmount->get_client())->ll_lookupx(parent, name, out, stx, want,
flags, *perms);
}
struct ceph_statx *stx, unsigned int want, unsigned int flags,
const UserPerm *perms)
{
+ if (flags & ~CEPH_REQ_FLAG_MASK)
+ return -EINVAL;
return(cmount->get_client()->ll_walk(name, i, stx, want, flags, *perms));
}
unsigned int want, unsigned int flags,
const UserPerm *perms)
{
+ if (flags & ~CEPH_REQ_FLAG_MASK)
+ return -EINVAL;
return (cmount->get_client()->ll_getattrx(in, stx, want, flags, *perms));
}
struct ceph_statx *stx, unsigned want,
unsigned lflags, const UserPerm *perms)
{
+ if (lflags & ~CEPH_REQ_FLAG_MASK)
+ return -EINVAL;
return (cmount->get_client())->ll_createx(parent, name, mode, oflags, outp,
fhp, stx, want, lflags, *perms);
}
unsigned want, unsigned flags,
const UserPerm *perms)
{
+ if (flags & ~CEPH_REQ_FLAG_MASK)
+ return -EINVAL;
return (cmount->get_client())->ll_mknodx(parent, name, mode, rdev,
out, stx, want, flags, *perms);
}
struct ceph_statx *stx, unsigned want,
unsigned flags, const UserPerm *perms)
{
+ if (flags & ~CEPH_REQ_FLAG_MASK)
+ return -EINVAL;
return cmount->get_client()->ll_mkdirx(parent, name, mode, out, stx, want,
flags, *perms);
}
struct ceph_statx *stx, unsigned want,
unsigned flags, const UserPerm *perms)
{
+ if (flags & ~CEPH_REQ_FLAG_MASK)
+ return -EINVAL;
return (cmount->get_client()->ll_symlinkx(in, name, value, out, stx, want,
flags, *perms));
}