22 #define M0_TRACE_SUBSYSTEM M0_TRACE_SUBSYS_CONF 126 return fstat(
fd, &statbuf) == 0 ? statbuf.st_size : 0;
187 const char stob_prefix[] =
"linuxstob:";
188 const char stob_suffix[] =
"confd";
206 name = strrchr(conf_path,
'/');
#define M0_BUFVEC_INIT_BUF(addr_ptr, count_ptr)
M0_INTERNAL struct m0_stob_domain * m0_stob_dom_get(struct m0_stob *stob)
M0_INTERNAL int m0_stob_io_bufvec_launch(struct m0_stob *stob, struct m0_bufvec *bufvec, int op_code, m0_bindex_t offset)
M0_INTERNAL int struct dentry struct kstat * stat
M0_INTERNAL int m0_stob_locate(struct m0_stob *stob)
static bool m0_addr_is_aligned(const void *addr, unsigned shift)
static m0_bcount_t confd_stob_length(struct m0_stob *stob)
M0_INTERNAL uint32_t m0_stob_block_shift(struct m0_stob *stob)
M0_INTERNAL struct m0_stob_domain * m0_stob_domain_find_by_location(const char *location)
M0_INTERNAL int m0_confd_service_to_filename(struct m0_reqh_service *service, char **dbpath)
return M0_ERR(-EOPNOTSUPP)
void m0_confd_stob_fini(struct m0_stob *stob)
M0_INTERNAL int m0_conf_stob_location_generate(struct m0_fom *fom, char **location)
static struct m0_stob * stob
int m0_confd_stob_init(struct m0_stob **stob, const char *location, struct m0_fid *confd_fid)
static struct m0_stob_domain * dom
M0_INTERNAL void m0_stob_id_make(uint64_t container, uint64_t key, const struct m0_fid *dom_id, struct m0_stob_id *stob_id)
int m0_confd_stob_bufvec_write(struct m0_stob *stob, struct m0_bufvec *bufvec)
int m0_confd_stob_write(struct m0_stob *stob, char *str)
M0_INTERNAL void m0_stob_domain_fini(struct m0_stob_domain *dom)
M0_INTERNAL int m0_stob_create(struct m0_stob *stob, struct m0_dtx *dtx, const char *str_cfg)
M0_INTERNAL enum m0_stob_state m0_stob_state_get(struct m0_stob *stob)
M0_INTERNAL int m0_stob_domain_create_or_init(const char *location, const char *str_cfg_init, uint64_t dom_key, const char *str_cfg_create, struct m0_stob_domain **out)
M0_INTERNAL int m0_stob_fd(struct m0_stob *stob)
#define m0_asprintf(s, fmt,...)
struct m0t1fs_filedata * fd
M0_INTERNAL int m0_stob_find(const struct m0_stob_id *id, struct m0_stob **out)
int m0_confd_stob_read(struct m0_stob *stob, char **str)
M0_INTERNAL void * m0_alloc_aligned(size_t size, unsigned shift)
M0_INTERNAL void m0_stob_put(struct m0_stob *stob)