Browse Source

change fuse functions to use the fuse namespace

pull/87/head
Antonio SJ Musumeci 9 years ago
parent
commit
983fa9100d
  1. 2
      src/access.cpp
  2. 2
      src/access.hpp
  3. 2
      src/chmod.cpp
  4. 2
      src/chmod.hpp
  5. 2
      src/chown.cpp
  6. 2
      src/chown.hpp
  7. 2
      src/create.cpp
  8. 2
      src/create.hpp
  9. 2
      src/destroy.cpp
  10. 2
      src/destroy.hpp
  11. 2
      src/fallocate.cpp
  12. 2
      src/fallocate.hpp
  13. 2
      src/fgetattr.cpp
  14. 2
      src/fgetattr.hpp
  15. 2
      src/flush.cpp
  16. 2
      src/flush.hpp
  17. 2
      src/fsync.cpp
  18. 2
      src/fsync.hpp
  19. 2
      src/ftruncate.cpp
  20. 2
      src/ftruncate.hpp
  21. 2
      src/getattr.cpp
  22. 2
      src/getattr.hpp
  23. 2
      src/getxattr.cpp
  24. 2
      src/getxattr.hpp
  25. 2
      src/init.cpp
  26. 2
      src/init.hpp
  27. 2
      src/ioctl.cpp
  28. 2
      src/ioctl.hpp
  29. 2
      src/link.cpp
  30. 2
      src/link.hpp
  31. 2
      src/listxattr.cpp
  32. 2
      src/listxattr.hpp
  33. 74
      src/mergerfs.cpp
  34. 2
      src/mkdir.cpp
  35. 2
      src/mkdir.hpp
  36. 2
      src/mknod.cpp
  37. 2
      src/mknod.hpp
  38. 2
      src/open.cpp
  39. 2
      src/open.hpp
  40. 2
      src/opendir.cpp
  41. 2
      src/opendir.hpp
  42. 2
      src/read.cpp
  43. 2
      src/read.hpp
  44. 2
      src/read_buf.cpp
  45. 2
      src/read_buf.hpp
  46. 2
      src/readdir.cpp
  47. 2
      src/readdir.hpp
  48. 2
      src/readlink.cpp
  49. 2
      src/readlink.hpp
  50. 2
      src/release.cpp
  51. 2
      src/release.hpp
  52. 2
      src/releasedir.cpp
  53. 2
      src/releasedir.hpp
  54. 2
      src/removexattr.cpp
  55. 2
      src/removexattr.hpp
  56. 2
      src/rename.cpp
  57. 2
      src/rename.hpp
  58. 2
      src/rmdir.cpp
  59. 2
      src/rmdir.hpp
  60. 2
      src/setxattr.cpp
  61. 2
      src/setxattr.hpp
  62. 2
      src/statfs.cpp
  63. 2
      src/statfs.hpp
  64. 2
      src/symlink.cpp
  65. 2
      src/symlink.hpp
  66. 2
      src/truncate.cpp
  67. 2
      src/truncate.hpp
  68. 2
      src/unlink.cpp
  69. 2
      src/unlink.hpp
  70. 2
      src/utimens.cpp
  71. 2
      src/utimens.hpp
  72. 2
      src/write.cpp
  73. 2
      src/write.hpp
  74. 2
      src/write_buf.cpp
  75. 2
      src/write_buf.hpp

2
src/access.cpp

@ -68,7 +68,7 @@ _access(Policy::Func::Search searchFunc,
namespace mergerfs
{
namespace access
namespace fuse
{
int
access(const char *fusepath,

2
src/access.hpp

@ -24,7 +24,7 @@
namespace mergerfs
{
namespace access
namespace fuse
{
int
access(const char *fusepath,

2
src/chmod.cpp

@ -68,7 +68,7 @@ _chmod(Policy::Func::Action actionFunc,
namespace mergerfs
{
namespace chmod
namespace fuse
{
int
chmod(const char *fusepath,

2
src/chmod.hpp

@ -24,7 +24,7 @@
namespace mergerfs
{
namespace chmod
namespace fuse
{
int
chmod(const char *fusepath,

2
src/chown.cpp

@ -70,7 +70,7 @@ _chown(Policy::Func::Action actionFunc,
namespace mergerfs
{
namespace chown
namespace fuse
{
int
chown(const char *fusepath,

2
src/chown.hpp

@ -24,7 +24,7 @@
namespace mergerfs
{
namespace chown
namespace fuse
{
int
chown(const char *fusepath,

2
src/create.cpp

@ -86,7 +86,7 @@ _create(Policy::Func::Search searchFunc,
namespace mergerfs
{
namespace create
namespace fuse
{
int
create(const char *fusepath,

2
src/create.hpp

@ -27,7 +27,7 @@
namespace mergerfs
{
namespace create
namespace fuse
{
int
create(const char *fusepath,

2
src/destroy.cpp

@ -24,7 +24,7 @@
namespace mergerfs
{
namespace destroy
namespace fuse
{
void
destroy(void *)

2
src/destroy.hpp

@ -24,7 +24,7 @@
namespace mergerfs
{
namespace destroy
namespace fuse
{
void
destroy(void *);

2
src/fallocate.cpp

@ -64,7 +64,7 @@ _fallocate(const int fd,
namespace mergerfs
{
namespace fallocate
namespace fuse
{
int
fallocate(const char *fusepath,

2
src/fallocate.hpp

@ -24,7 +24,7 @@
namespace mergerfs
{
namespace fallocate
namespace fuse
{
int
fallocate(const char *fusepath,

2
src/fgetattr.cpp

@ -43,7 +43,7 @@ _fgetattr(const int fd,
namespace mergerfs
{
namespace fgetattr
namespace fuse
{
int
fgetattr(const char *fusepath,

2
src/fgetattr.hpp

@ -28,7 +28,7 @@
namespace mergerfs
{
namespace fgetattr
namespace fuse
{
int
fgetattr(const char *fusepath,

2
src/flush.cpp

@ -44,7 +44,7 @@ _flush(const int fd)
namespace mergerfs
{
namespace flush
namespace fuse
{
int
flush(const char *fusepath,

2
src/flush.hpp

@ -24,7 +24,7 @@
namespace mergerfs
{
namespace flush
namespace fuse
{
int
flush(const char *path,

2
src/fsync.cpp

@ -50,7 +50,7 @@ _fsync(const int fd,
namespace mergerfs
{
namespace fsync
namespace fuse
{
int
fsync(const char *fusepath,

2
src/fsync.hpp

@ -26,7 +26,7 @@
namespace mergerfs
{
namespace fsync
namespace fuse
{
int
fsync(const char *fusepath,

2
src/ftruncate.cpp

@ -42,7 +42,7 @@ _ftruncate(const int fd,
namespace mergerfs
{
namespace ftruncate
namespace fuse
{
int
ftruncate(const char *fusepath,

2
src/ftruncate.hpp

@ -29,7 +29,7 @@
namespace mergerfs
{
namespace ftruncate
namespace fuse
{
int
ftruncate(const char *fusepath,

2
src/getattr.cpp

@ -88,7 +88,7 @@ _getattr(Policy::Func::Search searchFunc,
namespace mergerfs
{
namespace getattr
namespace fuse
{
int
getattr(const char *fusepath,

2
src/getattr.hpp

@ -28,7 +28,7 @@
namespace mergerfs
{
namespace getattr
namespace fuse
{
int
getattr(const char *fusepath,

2
src/getxattr.cpp

@ -238,7 +238,7 @@ _getxattr(Policy::Func::Search searchFunc,
namespace mergerfs
{
namespace getxattr
namespace fuse
{
int
getxattr(const char *fusepath,

2
src/getxattr.hpp

@ -24,7 +24,7 @@
namespace mergerfs
{
namespace getxattr
namespace fuse
{
int
getxattr(const char *fusepath,

2
src/init.cpp

@ -28,7 +28,7 @@
namespace mergerfs
{
namespace init
namespace fuse
{
void *
init(struct fuse_conn_info *conn)

2
src/init.hpp

@ -24,7 +24,7 @@
namespace mergerfs
{
namespace init
namespace fuse
{
void *
init(struct fuse_conn_info *conn);

2
src/ioctl.cpp

@ -138,7 +138,7 @@ _ioctl_dir(const string &fusepath,
namespace mergerfs
{
namespace ioctl
namespace fuse
{
int
ioctl(const char *fusepath,

2
src/ioctl.hpp

@ -24,7 +24,7 @@
namespace mergerfs
{
namespace ioctl
namespace fuse
{
int
ioctl(const char *fusepath,

2
src/link.cpp

@ -104,7 +104,7 @@ _link(Policy::Func::Search searchFunc,
namespace mergerfs
{
namespace link
namespace fuse
{
int
link(const char *from,

2
src/link.hpp

@ -24,7 +24,7 @@
namespace mergerfs
{
namespace link
namespace fuse
{
int
link(const char *from,

2
src/listxattr.cpp

@ -102,7 +102,7 @@ _listxattr(Policy::Func::Search searchFunc,
namespace mergerfs
{
namespace listxattr
namespace fuse
{
int
listxattr(const char *fusepath,

2
src/listxattr.hpp

@ -24,7 +24,7 @@
namespace mergerfs
{
namespace listxattr
namespace fuse
{
int
listxattr(const char *fusepath,

74
src/mergerfs.cpp

@ -92,57 +92,57 @@ namespace local
#endif
ops.flag_nullpath_ok = false;
ops.access = mergerfs::access::access;
ops.access = mergerfs::fuse::access;
ops.bmap = NULL;
ops.chmod = mergerfs::chmod::chmod;
ops.chown = mergerfs::chown::chown;
ops.create = mergerfs::create::create;
ops.destroy = mergerfs::destroy::destroy;
ops.chmod = mergerfs::fuse::chmod;
ops.chown = mergerfs::fuse::chown;
ops.create = mergerfs::fuse::create;
ops.destroy = mergerfs::fuse::destroy;
#if FALLOCATE
ops.fallocate = mergerfs::fallocate::fallocate;
ops.fallocate = mergerfs::fuse::fallocate;
#endif
ops.fgetattr = mergerfs::fgetattr::fgetattr;
ops.fgetattr = mergerfs::fuse::fgetattr;
#if FLOCK
ops.flock = NULL;
#endif
ops.flush = mergerfs::flush::flush;
ops.fsync = mergerfs::fsync::fsync;
ops.flush = mergerfs::fuse::flush;
ops.fsync = mergerfs::fuse::fsync;
ops.fsyncdir = NULL;
ops.ftruncate = mergerfs::ftruncate::ftruncate;
ops.getattr = mergerfs::getattr::getattr;
ops.ftruncate = mergerfs::fuse::ftruncate;
ops.getattr = mergerfs::fuse::getattr;
ops.getdir = NULL; /* deprecated; use readdir */
ops.getxattr = mergerfs::getxattr::getxattr;
ops.init = mergerfs::init::init;
ops.ioctl = mergerfs::ioctl::ioctl;
ops.link = mergerfs::link::link;
ops.listxattr = mergerfs::listxattr::listxattr;
ops.getxattr = mergerfs::fuse::getxattr;
ops.init = mergerfs::fuse::init;
ops.ioctl = mergerfs::fuse::ioctl;
ops.link = mergerfs::fuse::link;
ops.listxattr = mergerfs::fuse::listxattr;
ops.lock = NULL;
ops.mkdir = mergerfs::mkdir::mkdir;
ops.mknod = mergerfs::mknod::mknod;
ops.open = mergerfs::open::open;
ops.opendir = mergerfs::opendir::opendir;
ops.mkdir = mergerfs::fuse::mkdir;
ops.mknod = mergerfs::fuse::mknod;
ops.open = mergerfs::fuse::open;
ops.opendir = mergerfs::fuse::opendir;
ops.poll = NULL;
ops.read = mergerfs::read::read;
ops.read = mergerfs::fuse::read;
#if READ_BUF
ops.read_buf = mergerfs::read_buf::read_buf;
ops.read_buf = mergerfs::fuse::read_buf;
#endif
ops.readdir = mergerfs::readdir::readdir;
ops.readlink = mergerfs::readlink::readlink;
ops.release = mergerfs::release::release;
ops.releasedir = mergerfs::releasedir::releasedir;
ops.removexattr = mergerfs::removexattr::removexattr;
ops.rename = mergerfs::rename::rename;
ops.rmdir = mergerfs::rmdir::rmdir;
ops.setxattr = mergerfs::setxattr::setxattr;
ops.statfs = mergerfs::statfs::statfs;
ops.symlink = mergerfs::symlink::symlink;
ops.truncate = mergerfs::truncate::truncate;
ops.unlink = mergerfs::unlink::unlink;
ops.readdir = mergerfs::fuse::readdir;
ops.readlink = mergerfs::fuse::readlink;
ops.release = mergerfs::fuse::release;
ops.releasedir = mergerfs::fuse::releasedir;
ops.removexattr = mergerfs::fuse::removexattr;
ops.rename = mergerfs::fuse::rename;
ops.rmdir = mergerfs::fuse::rmdir;
ops.setxattr = mergerfs::fuse::setxattr;
ops.statfs = mergerfs::fuse::statfs;
ops.symlink = mergerfs::fuse::symlink;
ops.truncate = mergerfs::fuse::truncate;
ops.unlink = mergerfs::fuse::unlink;
ops.utime = NULL; /* deprecated; use utimens() */
ops.utimens = mergerfs::utimens::utimens;
ops.write = mergerfs::write::write;
ops.utimens = mergerfs::fuse::utimens;
ops.write = mergerfs::fuse::write;
#if WRITE_BUF
ops.write_buf = mergerfs::write_buf::write_buf;
ops.write_buf = mergerfs::fuse::write_buf;
#endif
return;

2
src/mkdir.cpp

@ -88,7 +88,7 @@ _mkdir(Policy::Func::Search searchFunc,
namespace mergerfs
{
namespace mkdir
namespace fuse
{
int
mkdir(const char *fusepath,

2
src/mkdir.hpp

@ -24,7 +24,7 @@
namespace mergerfs
{
namespace mkdir
namespace fuse
{
int
mkdir(const char *fusepath,

2
src/mknod.cpp

@ -90,7 +90,7 @@ _mknod(Policy::Func::Search searchFunc,
namespace mergerfs
{
namespace mknod
namespace fuse
{
int
mknod(const char *fusepath,

2
src/mknod.hpp

@ -24,7 +24,7 @@
namespace mergerfs
{
namespace mknod
namespace fuse
{
int
mknod(const char *fusepath,

2
src/open.cpp

@ -68,7 +68,7 @@ _open(Policy::Func::Search searchFunc,
namespace mergerfs
{
namespace open
namespace fuse
{
int
open(const char *fusepath,

2
src/open.hpp

@ -26,7 +26,7 @@
namespace mergerfs
{
namespace open
namespace fuse
{
int
open(const char *fusepath,

2
src/opendir.cpp

@ -26,7 +26,7 @@
namespace mergerfs
{
namespace opendir
namespace fuse
{
int
opendir(const char *fusepath,

2
src/opendir.hpp

@ -26,7 +26,7 @@
namespace mergerfs
{
namespace opendir
namespace fuse
{
int
opendir(const char *fusepath,

2
src/read.cpp

@ -46,7 +46,7 @@ _read(const int fd,
namespace mergerfs
{
namespace read
namespace fuse
{
int
read(const char *fusepath,

2
src/read.hpp

@ -24,7 +24,7 @@
namespace mergerfs
{
namespace read
namespace fuse
{
int
read(const char *fusepath,

2
src/read_buf.cpp

@ -56,7 +56,7 @@ _read_buf(const int fd,
namespace mergerfs
{
namespace read_buf
namespace fuse
{
int
read_buf(const char *fusepath,

2
src/read_buf.hpp

@ -24,7 +24,7 @@
namespace mergerfs
{
namespace read_buf
namespace fuse
{
int
read_buf(const char *fusepath,

2
src/readdir.cpp

@ -87,7 +87,7 @@ _readdir(const vector<string> &srcmounts,
namespace mergerfs
{
namespace readdir
namespace fuse
{
int
readdir(const char *fusepath,

2
src/readdir.hpp

@ -36,7 +36,7 @@
namespace mergerfs
{
namespace readdir
namespace fuse
{
int
readdir(const char *fusepath,

2
src/readlink.cpp

@ -68,7 +68,7 @@ _readlink(Policy::Func::Search searchFunc,
namespace mergerfs
{
namespace readlink
namespace fuse
{
int
readlink(const char *fusepath,

2
src/readlink.hpp

@ -24,7 +24,7 @@
namespace mergerfs
{
namespace readlink
namespace fuse
{
int
readlink(const char *fusepath,

2
src/release.cpp

@ -42,7 +42,7 @@ _release(uint64_t &fh)
namespace mergerfs
{
namespace release
namespace fuse
{
int
release(const char *fusepath,

2
src/release.hpp

@ -24,7 +24,7 @@
namespace mergerfs
{
namespace release
namespace fuse
{
int
release(const char *fusepath,

2
src/releasedir.cpp

@ -26,7 +26,7 @@
namespace mergerfs
{
namespace releasedir
namespace fuse
{
int
releasedir(const char *fusepath,

2
src/releasedir.hpp

@ -26,7 +26,7 @@
namespace mergerfs
{
namespace releasedir
namespace fuse
{
int
releasedir(const char *fusepath,

2
src/removexattr.cpp

@ -75,7 +75,7 @@ _removexattr(Policy::Func::Action actionFunc,
namespace mergerfs
{
namespace removexattr
namespace fuse
{
int
removexattr(const char *fusepath,

2
src/removexattr.hpp

@ -24,7 +24,7 @@
namespace mergerfs
{
namespace removexattr
namespace fuse
{
int
removexattr(const char *fusepath,

2
src/rename.cpp

@ -107,7 +107,7 @@ _rename(Policy::Func::Search searchFunc,
namespace mergerfs
{
namespace rename
namespace fuse
{
int
rename(const char *oldpath,

2
src/rename.hpp

@ -24,7 +24,7 @@
namespace mergerfs
{
namespace rename
namespace fuse
{
int
rename(const char *from,

2
src/rmdir.cpp

@ -68,7 +68,7 @@ _rmdir(Policy::Func::Action actionFunc,
namespace mergerfs
{
namespace rmdir
namespace fuse
{
int
rmdir(const char *fusepath)

2
src/rmdir.hpp

@ -24,7 +24,7 @@
namespace mergerfs
{
namespace rmdir
namespace fuse
{
int
rmdir(const char *fusepath);

2
src/setxattr.cpp

@ -298,7 +298,7 @@ _setxattr(Policy::Func::Action actionFunc,
}
namespace mergerfs
{
namespace setxattr
namespace fuse
{
int
setxattr(const char *fusepath,

2
src/setxattr.hpp

@ -24,7 +24,7 @@
namespace mergerfs
{
namespace setxattr
namespace fuse
{
int
setxattr(const char *fusepath,

2
src/statfs.cpp

@ -118,7 +118,7 @@ _statfs(const vector<string> &srcmounts,
namespace mergerfs
{
namespace statfs
namespace fuse
{
int
statfs(const char *fusepath,

2
src/statfs.hpp

@ -24,7 +24,7 @@
namespace mergerfs
{
namespace statfs
namespace fuse
{
int
statfs(const char *fusepath,

2
src/symlink.cpp

@ -71,7 +71,7 @@ _symlink(Policy::Func::Create createFunc,
namespace mergerfs
{
namespace symlink
namespace fuse
{
int
symlink(const char *oldpath,

2
src/symlink.hpp

@ -24,7 +24,7 @@
namespace mergerfs
{
namespace symlink
namespace fuse
{
int
symlink(const char *oldpath,

2
src/truncate.cpp

@ -71,7 +71,7 @@ _truncate(Policy::Func::Action actionFunc,
namespace mergerfs
{
namespace truncate
namespace fuse
{
int
truncate(const char *fusepath,

2
src/truncate.hpp

@ -26,7 +26,7 @@
namespace mergerfs
{
namespace truncate
namespace fuse
{
int
truncate(const char *fusepath,

2
src/unlink.cpp

@ -69,7 +69,7 @@ _unlink(Policy::Func::Action actionFunc,
namespace mergerfs
{
namespace unlink
namespace fuse
{
int
unlink(const char *fusepath)

2
src/unlink.hpp

@ -24,7 +24,7 @@
namespace mergerfs
{
namespace unlink
namespace fuse
{
int
unlink(const char *fusepath);

2
src/utimens.cpp

@ -71,7 +71,7 @@ _utimens(Policy::Func::Action actionFunc,
namespace mergerfs
{
namespace utimens
namespace fuse
{
int
utimens(const char *fusepath,

2
src/utimens.hpp

@ -24,7 +24,7 @@
namespace mergerfs
{
namespace utimens
namespace fuse
{
int
utimens(const char *fusepath,

2
src/write.cpp

@ -43,7 +43,7 @@ _write(const int fd,
namespace mergerfs
{
namespace write
namespace fuse
{
int
write(const char *fusepath,

2
src/write.hpp

@ -24,7 +24,7 @@
namespace mergerfs
{
namespace write
namespace fuse
{
int
write(const char *fusepath,

2
src/write_buf.cpp

@ -50,7 +50,7 @@ _write_buf(const int fd,
namespace mergerfs
{
namespace write_buf
namespace fuse
{
int
write_buf(const char *fusepath,

2
src/write_buf.hpp

@ -24,7 +24,7 @@
namespace mergerfs
{
namespace write_buf
namespace fuse
{
int
write_buf(const char *fusepath,

Loading…
Cancel
Save