diff -urN fsarchiver-0.6.1-a/src/archive.c fsarchiver-0.6.1-b/src/archive.c --- fsarchiver-0.6.1-a/src/archive.c 2009-10-04 09:45:19.000000000 +0100 +++ fsarchiver-0.6.1-b/src/archive.c 2010-02-20 21:45:42.000000000 +0000 @@ -46,7 +46,6 @@ ai->complevel=-1; ai->archfd=-1; ai->archid=0; - ai->locked=false; ai->curvol=0; return 0; } @@ -92,13 +91,6 @@ ai->createdbyfsa=true; - if (lockf(ai->archfd, F_LOCK, 0)!=0) - { sysprintf("Cannot lock archive file: %s\n", ai->volpath); - close(ai->archfd); - return -1; - } - ai->locked=true; - return 0; } @@ -139,8 +131,6 @@ return -1; } - if (ai->locked) - res=lockf(ai->archfd, F_ULOCK, 0); fsync(ai->archfd); // just in case the user reboots after it exits close(ai->archfd); ai->archfd=-1; diff -urN fsarchiver-0.6.1-a/src/archive.h fsarchiver-0.6.1-b/src/archive.h --- fsarchiver-0.6.1-a/src/archive.h 2009-10-04 09:45:19.000000000 +0100 +++ fsarchiver-0.6.1-b/src/archive.h 2010-02-20 21:45:46.000000000 +0000 @@ -27,7 +27,6 @@ int archfd; // file descriptor of the current volume (set to -1 when closed) u32 archid; // 32bit archive id for checking (random number generated at creation) u64 fscount; // how many filesystems in archive (valid only if archtype=filesystems) - int locked; // true if the file is locked by the open/create/close functions u32 archtype; // what has been saved in the archive: filesystems or directories u32 curvol; // current volume number, starts at 0, incremented when we change the volume u32 compalgo; // compression algorithm which has been used to create the archive