Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Functions
hostfs_user.c File Reference
#include <stdio.h>
#include <stddef.h>
#include <unistd.h>
#include <dirent.h>
#include <errno.h>
#include <fcntl.h>
#include <string.h>
#include <sys/stat.h>
#include <sys/time.h>
#include <sys/types.h>
#include <sys/vfs.h>
#include "hostfs.h"
#include <utime.h>

Go to the source code of this file.

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)
 
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 replace_file (int oldfd, int fd)
 
void close_file (void *stream)
 
void close_dir (void *stream)
 
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 *to, const char *from)
 
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)
 

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 to,
const char from 
)

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.