Coder Social home page Coder Social logo

jachappell / fusepp Goto Github PK

View Code? Open in Web Editor NEW
44.0 9.0 18.0 31 KB

Fusepp -- A simple C++ wrapper for the FUSE filesystem

Home Page: https://www.storage-b.com/c/369

License: MIT License

C++ 88.32% Makefile 4.15% C 7.53%
libfuse fuse-filesystem c-plus-plus

fusepp's Introduction

Fusepp -- A simple C++ wrapper for the FUSE filesystem

Note: This version works with libfuse 3.0.0, see FuseApp 2.0 for a version that works with libfuse 2.9.7.

fusepp's People

Contributors

jachappell avatar jlusiardi avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

fusepp's Issues

Compatibility to next FUSE release

The current master branch of libfuse contains changes breaking the compatibility to Fusepp. The ChangeLog states:

Changed ioctl commands to "unsigned int"

In my tests, the only change required to be able to use Fusepp again was to change line 78 in Fuse.h from

typedef int(*t_ioctl) (const char *, int cmd, void *arg,

to

typedef int(*t_ioctl) (const char *, unsigned int cmd, void *arg,

Up to the latest tagged version 3.4.2 of libfuse everything works fine, but I guess the next release requires an update of Fusepp.

more PR's

EDIT: (Whoops, GH not having Issues on forked repos), but it would be nice to have a 2nd example in the main repo

Then I can push a fixed and tested version of fusehad to the Fuse-2.9 branch. The 1st PR of this is a fix to remove the #include <boost/noncopyable.hpp> dependancy. The 2nd PR will be the fusehad/ directory with full contents.

The local PR (here) for that above fix is #8 (thanks for adding that)

example make error

[root@bjht3149 example]# make clean
rm -f *.o  ../src/*.o   master_election distribute_lock distribute_sharedlock distribute_barrier
[root@bjht3149 example]# make
/opt/rh/devtoolset-8/root/usr/bin/g++ -g -O -Wall  -I./   -I../ -I/usr/include/zookeeper -I../src/ -I/export/newjpush/include -I/export/newjpush/  -c ../src/ZkTimerQueue.cc -o ./../src/ZkTimerQueue.o -DMUDUO_STD_STRING -DUSE_CALL_RECORDER -DTHREADED -lzookeeper_mt -L../lib -lbase -lpthread -lrt   -L../lib -lnet
In file included from ../src/ZkTimerQueue.cc:15:
../src/ZkTimerQueue.h: In constructor ‘ZkCppClient::ZkTimerQueue::ZkTimerQueue(int, int)’:
../src/ZkTimerQueue.h:75:7: warning: ‘ZkCppClient::ZkTimerQueue::epollfd_’ will be initialized after [-Wreorder]
   int epollfd_;
       ^~~~~~~~
../src/ZkTimerQueue.h:73:13: warning:   ‘const int ZkCppClient::ZkTimerQueue::timerfd_’ [-Wreorder]
   const int timerfd_;
             ^~~~~~~~
../src/ZkTimerQueue.cc:85:1: warning:   when initialized here [-Wreorder]
 ZkTimerQueue::ZkTimerQueue(int thread_id, int epoll_fd/*, SslClientThreadManager *manager*/)
 ^~~~~~~~~~~~
/opt/rh/devtoolset-8/root/usr/bin/g++ -g -O -Wall  -I./   -I../ -I/usr/include/zookeeper -I../src/ -I/export/newjpush/include -I/export/newjpush/  -c ../src/ZkClient.cc -o ./../src/ZkClient.o -DMUDUO_STD_STRING -DUSE_CALL_RECORDER -DTHREADED -lzookeeper_mt -L../lib -lbase -lpthread -lrt   -L../lib -lnet
In file included from ../src/ZkClient.cc:11:
../src/ZkClient.h: In constructor ‘ZkCppClient::ZkClient::ZkClient(uint32_t)’:
../src/ZkClient.h:598:26: warning: ‘ZkCppClient::ZkClient::stateCondition_’ will be initialized after [-Wreorder]
         muduo::Condition stateCondition_;
                          ^~~~~~~~~~~~~~~
../src/ZkClient.h:590:20: warning:   ‘zhandle_t* ZkCppClient::ZkClient::zhandle_’ [-Wreorder]
         zhandle_t* zhandle_;
                    ^~~~~~~~
../src/ZkClient.cc:303:1: warning:   when initialized here [-Wreorder]
 ZkClient::ZkClient(uint32_t handle) :
 ^~~~~~~~
In file included from ../src/ZkClient.cc:11:
../src/ZkClient.h:604:26: warning: ‘ZkCppClient::ZkClient::sessionDisconnectMs_’ will be initialized after [-Wreorder]
         volatile int64_t sessionDisconnectMs_;   //session·¢??3£μ?±??
                          ^~~~~~~~~~~~~~~~~~~~
../src/ZkClient.h:599:26: warning:   ‘muduo::MutexLock ZkCppClient::ZkClient::sessStateMutex_’ [-Wreorder]
         muduo::MutexLock sessStateMutex_;   //±£?¤??session_state_μ?¥3??
                          ^~~~~~~~~~~~~~~
../src/ZkClient.cc:303:1: warning:   when initialized here [-Wreorder]
 ZkClient::ZkClient(uint32_t handle) :
 ^~~~~~~~
In file included from ../src/ZkClient.cc:11:
../src/ZkClient.h:610:26: warning: ‘ZkCppClient::ZkClient::childWatchMutex_’ will be initialized after [-Wreorder]
         muduo::MutexLock childWatchMutex_;
                          ^~~~~~~~~~~~~~~~
../src/ZkClient.h:585:17: warning:   ‘volatile bool ZkCppClient::ZkClient::isRetrying_’ [-Wreorder]
   volatile bool isRetrying_;
                 ^~~~~~~~~~~
../src/ZkClient.cc:303:1: warning:   when initialized here [-Wreorder]
 ZkClient::ZkClient(uint32_t handle) :
 ^~~~~~~~
In file included from ../src/ZkClient.cc:11:
../src/ZkClient.h:589:26: warning: ‘ZkCppClient::ZkClient::clientId_’ will be initialized after [-Wreorder]
         SessionClientId *clientId_;
                          ^~~~~~~~~
../src/ZkClient.h:582:17: warning:   ‘volatile bool ZkCppClient::ZkClient::isInitialized_’ [-Wreorder]
   volatile bool isInitialized_;
                 ^~~~~~~~~~~~~~
../src/ZkClient.cc:303:1: warning:   when initialized here [-Wreorder]
 ZkClient::ZkClient(uint32_t handle) :
 ^~~~~~~~
../src/ZkClient.cc: In member function ‘bool ZkCppClient::ZkClient::init(const string&, int, ZkCppClient::SessionClientId*, ZkCppClient::ZkUtil::SessionExpiredHandler, void*)’:
../src/ZkClient.cc:351:54: warning: argument to ‘sizeof’ in ‘char* strncpy(char*, const char*, size_t)’ call is the same expression as the source; did you mean to use the size of the destination? [-Wsizeof-pointer-memaccess]
         strncpy(clientId_->passwd, clientId->passwd, sizeof(clientId->passwd));
                                                      ^~~~~~~~~~~~~~~~~~~~~~~~
../src/ZkClient.cc: In member function ‘bool ZkCppClient::ZkClient::getClientId(ZkCppClient::SessionClientId&)’:
../src/ZkClient.cc:683:45: warning: argument to ‘sizeof’ in ‘char* strncpy(char*, const char*, size_t)’ call is the same expression as the source; did you mean to use the size of the destination? [-Wsizeof-pointer-memaccess]
    strncpy(cliId.passwd, pClientId->passwd, sizeof(pClientId->passwd));
                                             ^~~~~~~~~~~~~~~~~~~~~~~~~
/opt/rh/devtoolset-8/root/usr/bin/g++ -g -O -Wall  -I./   -I../ -I/usr/include/zookeeper -I../src/ -I/export/newjpush/include -I/export/newjpush/  -c ../src/ZkClientManager.cc -o ./../src/ZkClientManager.o -DMUDUO_STD_STRING -DUSE_CALL_RECORDER -DTHREADED -lzookeeper_mt -L../lib -lbase -lpthread -lrt   -L../lib -lnet
/opt/rh/devtoolset-8/root/usr/bin/g++ -g -O -Wall  -I./   -I../ -I/usr/include/zookeeper -I../src/ -I/export/newjpush/include -I/export/newjpush/  -c master_election.cc -o ./master_election.o -DMUDUO_STD_STRING -DUSE_CALL_RECORDER -DTHREADED -lzookeeper_mt -L../lib -lbase -lpthread -lrt   -L../lib -lnet
master_election.cc: In destructor ‘MasterElection::~MasterElection()’:
master_election.cc:107:29: warning: unused variable ‘ec’ [-Wunused-variable]
         ZkUtil::ZkErrorCode ec = zkClient_->deleteRecursive(childPath_);
                             ^~
/opt/rh/devtoolset-8/root/usr/bin/g++ -g -O -Wall -fno-common -o master_election ../src/ZkTimerQueue.o ../src/ZkClient.o ../src/ZkClientManager.o master_election.o -lzookeeper_mt -L../lib -lbase -lpthread -lrt   -L../lib -lnet
../src/ZkClientManager.o: In function `ZkCppClient::ZkClientManager::init()':
/home/zxc/zookeeper_cpp_client-master/example/../src/ZkClientManager.cc:131: undefined reference to `muduo::Thread::Thread(boost::function<void ()>&&, std::string const&)'
master_election.o: In function `masterFun()':
/home/zxc/zookeeper_cpp_client-master/example/master_election.cc:175: undefined reference to `muduo::Thread::Thread(boost::function<void ()>&&, std::string const&)'
collect2: error: ld returned 1 exit status
make: *** [master_election] Error 1
[root@bjht3149 example]# 

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.