Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions
hostfs.h File Reference
#include <os.h>

Go to the source code of this file.

Data Structures

struct  hostfs_iattr
 
struct  hostfs_stat
 

Macros

#define HOSTFS_ATTR_MODE   1
 
#define HOSTFS_ATTR_UID   2
 
#define HOSTFS_ATTR_GID   4
 
#define HOSTFS_ATTR_SIZE   8
 
#define HOSTFS_ATTR_ATIME   16
 
#define HOSTFS_ATTR_MTIME   32
 
#define HOSTFS_ATTR_CTIME   64
 
#define HOSTFS_ATTR_ATIME_SET   128
 
#define HOSTFS_ATTR_MTIME_SET   256
 
#define HOSTFS_ATTR_FORCE   512 /* Not a change, but a change it */
 
#define HOSTFS_ATTR_ATTR_FLAG   1024
 

Functions

int stat_file (const char *path, struct hostfs_stat *p, int fd)
 
int access_file (char *path, int r, int w, int x)
 
int open_file (char *path, int r, int w, int append)
 
voidopen_dir (char *path, int *err_out)
 
charread_dir (void *stream, unsigned long long *pos, unsigned long long *ino_out, int *len_out, unsigned int *type_out)
 
void close_file (void *stream)
 
int replace_file (int oldfd, int fd)
 
void close_dir (void *stream)
 
int read_file (int fd, unsigned long long *offset, char *buf, int len)
 
int write_file (int fd, unsigned long long *offset, const char *buf, int len)
 
int lseek_file (int fd, long long offset, int whence)
 
int fsync_file (int fd, int datasync)
 
int file_create (char *name, int ur, int uw, int ux, int gr, int gw, int gx, int or, int ow, int ox)
 
int set_attr (const char *file, struct hostfs_iattr *attrs, int fd)
 
int make_symlink (const char *from, const char *to)
 
int unlink_file (const char *file)
 
int do_mkdir (const char *file, int mode)
 
int do_rmdir (const char *file)
 
int do_mknod (const char *file, int mode, unsigned int major, unsigned int minor)
 
int link_file (const char *from, const char *to)
 
int hostfs_do_readlink (char *file, char *buf, int size)
 
int rename_file (char *from, char *to)
 
int do_statfs (char *root, long *bsize_out, long long *blocks_out, long long *bfree_out, long long *bavail_out, long long *files_out, long long *ffree_out, void *fsid_out, int fsid_size, long *namelen_out)
 

Macro Definition Documentation

#define HOSTFS_ATTR_ATIME   16

Definition at line 15 of file hostfs.h.

#define HOSTFS_ATTR_ATIME_SET   128

Definition at line 18 of file hostfs.h.

#define HOSTFS_ATTR_ATTR_FLAG   1024

Definition at line 23 of file hostfs.h.

#define HOSTFS_ATTR_CTIME   64

Definition at line 17 of file hostfs.h.

#define HOSTFS_ATTR_FORCE   512 /* Not a change, but a change it */

Definition at line 22 of file hostfs.h.

#define HOSTFS_ATTR_GID   4

Definition at line 13 of file hostfs.h.

#define HOSTFS_ATTR_MODE   1

Definition at line 11 of file hostfs.h.

#define HOSTFS_ATTR_MTIME   32

Definition at line 16 of file hostfs.h.

#define HOSTFS_ATTR_MTIME_SET   256

Definition at line 19 of file hostfs.h.

#define HOSTFS_ATTR_SIZE   8

Definition at line 14 of file hostfs.h.

#define HOSTFS_ATTR_UID   2

Definition at line 12 of file hostfs.h.

Function Documentation

int access_file ( char path,
int  r,
int  w,
int  x 
)

Definition at line 54 of file hostfs_user.c.

void close_dir ( void stream)

Definition at line 172 of file hostfs_user.c.

void close_file ( void stream)

Definition at line 167 of file hostfs_user.c.

int do_mkdir ( const char file,
int  mode 
)

Definition at line 301 of file hostfs_user.c.

int do_mknod ( const char file,
int  mode,
unsigned int  major,
unsigned int  minor 
)

Definition at line 321 of file hostfs_user.c.

int do_rmdir ( const char file)

Definition at line 311 of file hostfs_user.c.

int do_statfs ( char root,
long bsize_out,
long long blocks_out,
long long bfree_out,
long long bavail_out,
long long files_out,
long long ffree_out,
void fsid_out,
int  fsid_size,
long namelen_out 
)

Definition at line 363 of file hostfs_user.c.

int file_create ( char name,
int  ur,
int  uw,
int  ux,
int  gr,
int  gw,
int  gx,
int  or,
int  ow,
int  ox 
)

Definition at line 177 of file hostfs_user.c.

int fsync_file ( int  fd,
int  datasync 
)

Definition at line 149 of file hostfs_user.c.

int hostfs_do_readlink ( char file,
char buf,
int  size 
)

Definition at line 341 of file hostfs_user.c.

int link_file ( const char from,
const char to 
)

Definition at line 331 of file hostfs_user.c.

int lseek_file ( int  fd,
long long  offset,
int  whence 
)

Definition at line 139 of file hostfs_user.c.

int make_symlink ( const char from,
const char to 
)

Definition at line 281 of file hostfs_user.c.

void* open_dir ( char path,
int err_out 
)

Definition at line 89 of file hostfs_user.c.

int open_file ( char path,
int  r,
int  w,
int  append 
)

Definition at line 69 of file hostfs_user.c.

char* read_dir ( void stream,
unsigned long long pos,
unsigned long long ino_out,
int len_out,
unsigned int type_out 
)

Definition at line 99 of file hostfs_user.c.

int read_file ( int  fd,
unsigned long long offset,
char buf,
int  len 
)

Definition at line 117 of file hostfs_user.c.

int rename_file ( char from,
char to 
)

Definition at line 353 of file hostfs_user.c.

int replace_file ( int  oldfd,
int  fd 
)

Definition at line 162 of file hostfs_user.c.

int set_attr ( const char file,
struct hostfs_iattr attrs,
int  fd 
)

Definition at line 198 of file hostfs_user.c.

int stat_file ( const char path,
struct hostfs_stat p,
int  fd 
)

Definition at line 40 of file hostfs_user.c.

int unlink_file ( const char file)

Definition at line 291 of file hostfs_user.c.

int write_file ( int  fd,
unsigned long long offset,
const char buf,
int  len 
)

Definition at line 128 of file hostfs_user.c.