mirror of
https://github.com/vgough/encfs.git
synced 2024-11-22 07:53:31 +01:00
remove ulockmgr support, since it isn't needed
git-svn-id: http://encfs.googlecode.com/svn/trunk@11 db9cf616-1c43-0410-9cb8-a902689de0d6
This commit is contained in:
parent
1953986995
commit
e8e2a6a610
@ -66,8 +66,6 @@ AC_CHECK_LIB(fuse,fuse_new, [FUSE_LIBS="-lfuse"],
|
||||
and rerun configure, eg:
|
||||
export LDFLAGS=-L/usr/local/lib ])],)
|
||||
|
||||
AC_CHECK_HEADERS([ulockmgr.h])
|
||||
AC_CHECK_LIB(ulockmgr,ulockmgr_op, [FUSE_LIBS="$FUSE_LIBS -lulockmgr"])
|
||||
AC_SUBST(FUSE_LIBS)
|
||||
|
||||
# check for a supported FUSE_MAJOR_VERSION.
|
||||
|
@ -37,12 +37,6 @@
|
||||
#include <sys/xattr.h>
|
||||
#endif
|
||||
|
||||
#ifdef HAVE_ULOCKMGR_H
|
||||
extern "C" {
|
||||
#include <ulockmgr.h>
|
||||
}
|
||||
#endif
|
||||
|
||||
|
||||
#include <string>
|
||||
#include <map>
|
||||
@ -756,31 +750,3 @@ int encfs_removexattr( const char *path, const char *name )
|
||||
}
|
||||
#endif // HAVE_XATTR
|
||||
|
||||
#ifdef HAVE_ULOCKMGR_H
|
||||
int _do_lock(FileNode *fnode,
|
||||
tuple<int, struct flock *, struct fuse_file_info *> data)
|
||||
{
|
||||
int cmd = data.get<0>();
|
||||
struct flock *lock = data.get<1>();
|
||||
struct fuse_file_info *fi = data.get<2>();
|
||||
|
||||
int fh = fnode->open( O_RDONLY );
|
||||
if(fh >= 0)
|
||||
{
|
||||
return ulockmgr_op(fh, cmd, lock, &fi->lock_owner,
|
||||
sizeof(fi->lock_owner));
|
||||
} else
|
||||
{
|
||||
rInfo("open failed in lock of %s", fnode->cipherName());
|
||||
return fh;
|
||||
}
|
||||
}
|
||||
|
||||
int encfs_lock( const char *path, struct fuse_file_info *fi, int cmd,
|
||||
struct flock *lock)
|
||||
{
|
||||
return withFileNode( "lock", path, fi,
|
||||
_do_lock, make_tuple(cmd, lock, fi) );
|
||||
}
|
||||
#endif
|
||||
|
||||
|
@ -92,12 +92,6 @@ int encfs_listxattr( const char *path, char *list, size_t size );
|
||||
int encfs_removexattr( const char *path, const char *name );
|
||||
#endif
|
||||
|
||||
#ifdef HAVE_ULOCKMGR_H
|
||||
struct flock;
|
||||
int encfs_lock( const char *path, struct fuse_file_info *fi, int cmd,
|
||||
struct flock *lock );
|
||||
#endif
|
||||
|
||||
int encfs_utimens( const char *path, const struct timespec ts[2] );
|
||||
|
||||
#endif
|
||||
|
@ -558,9 +558,6 @@ int main(int argc, char *argv[])
|
||||
//encfs_oper.create = encfs_create;
|
||||
encfs_oper.ftruncate = encfs_ftruncate;
|
||||
encfs_oper.fgetattr = encfs_fgetattr;
|
||||
#ifdef HAVE_ULOCKMGR_H
|
||||
encfs_oper.lock = encfs_lock;
|
||||
#endif // HAVE_ULOCKMGR_H
|
||||
encfs_oper.utimens = encfs_utimens;
|
||||
//encfs_oper.bmap = encfs_bmap;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user