Skip to content

Commit

Permalink
Check for function setxattr in configure and define fusexx
Browse files Browse the repository at this point in the history
accordingly. This will break compilation on systems without
extended attributes, but ofs was broken on those systems anyway.
  • Loading branch information
trommler committed Aug 5, 2011
1 parent fe936de commit 4f363bc
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 5 deletions.
2 changes: 1 addition & 1 deletion configure.in
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ AC_CHECK_HEADERS([arpa/inet.h fcntl.h netdb.h stdlib.h string.h sys/file.h sys/m
AC_FUNC_ERROR_AT_LINE
AC_FUNC_FORK
AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK
AC_CHECK_FUNCS([ftruncate gethostbyname lchown memset mkdir mkfifo rmdir select socket strchr strerror strstr umount2 utime])
AC_CHECK_FUNCS([ftruncate gethostbyname lchown memset mkdir mkfifo rmdir select socket strchr strerror strstr umount2 utime setxattr])

# Checks for typedefs, structures, and compiler characteristics.
AC_HEADER_STDBOOL
Expand Down
5 changes: 3 additions & 2 deletions src/ofs_fuse.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -927,10 +927,11 @@ void *ofs_fuse::fuse_init (struct fuse_conn_info *conn) {
// btm.set_Cache_Path("/tmp/ofscache/");
btm.reinstate();

// create offline recognition thread
//if (argv[5]) {
pthread_t thread, threadlw;
pthread_t thread;
pthread_t threadlw;
pthread_create( &thread, NULL, runOfflineRecognizer, NULL);
// FIXME: Create thread only if lazy write enabled
pthread_create( &threadlw, NULL, runlazywrite, NULL);

//}
Expand Down
2 changes: 0 additions & 2 deletions src/ofs_fuse.h
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,6 @@
#ifndef OFS_FUSE_H
#define OFS_FUSE_H

#define HAVE_SETXATTR

#include <fusexx.hpp>
#include <string>
#include <dirent.h>
Expand Down

0 comments on commit 4f363bc

Please sign in to comment.