tst: passthrough-fuse: testing

This commit is contained in:
Bill Zissimopoulos
2017-01-29 13:48:29 -08:00
parent 075d1821a2
commit 206b85c278
3 changed files with 64 additions and 15 deletions

View File

@ -33,7 +33,7 @@
#define FSNAME "passthrough"
#define PROGNAME "passthrough-fuse"
#define concat_path(ptfs, fn, fp) (sizeof fp > (unsigned)snprintf(fp, sizeof fp, "%s/%s", ptfs->rootdir, fn))
#define concat_path(ptfs, fn, fp) (sizeof fp > (unsigned)snprintf(fp, sizeof fp, "%s%s", ptfs->rootdir, fn))
#define ptfs_impl_fullpath(n) \
char full ## n[PATH_MAX]; \
if (!concat_path(((PTFS *)fuse_get_context()->private_data), n, full ## n))\