Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Branch: master
Fetching contributors…

Cannot retrieve contributors at this time

46 lines (38 sloc) 1.418 kB
#ifndef FSTREE_H_
#define FSTREE_H_
#define FUSE_USE_VERSION 26
#define _XOPEN_SOURCE 500
#define PHOENIXFS_MAGIC 0x2888
#include "common.h"
#include "btree.h"
#include "crc32.h"
#include "sha1.h"
#include "persist.h"
#include "pack.h"
#include <sys/stat.h>
struct env_t {
char fsback[PATH_MAX];
char mountpoint[PATH_MAX];
};
int parse_pathspec(char *xpath, const char *path);
int build_xpath(char *xpath, const char *path, int rev);
char *split_basename(const char *path, char *dirname);
void fill_stat(struct stat *st, struct file_record *fr);
struct node *get_fsroot(void);
struct dir_record *find_dr(const char *path);
struct vfile_record *find_vfr(const char *path);
struct file_record *find_fr(const char *path, int rev);
struct dir_record *make_dr(const char *path);
struct vfile_record *make_vfr(const char *name);
struct file_record *make_fr(const char *path, const char *follow);
void insert_dr(struct dir_record *dr);
void insert_vfr(struct dir_record *dr, struct vfile_record *vfr);
void insert_fr(struct vfile_record *vfr, struct file_record *fr);
struct node *remove_entry(struct node *root, uint16_t key);
void fstree_insert_update_file(const char *path, const char *follow);
void fstree_remove_file(const char *path);
void fstree_dump_tree(FILE *outfile);
void fstree_load_tree(FILE *infile);
void print_fstree(void);
#define ROOTENV ((struct env_t *) fuse_get_context()->private_data)
#endif
Jump to Line
Something went wrong with that request. Please try again.