Fix file locking
authorEric Biggers <ebiggers3@gmail.com>
Mon, 26 May 2014 20:42:50 +0000 (15:42 -0500)
committerEric Biggers <ebiggers3@gmail.com>
Mon, 26 May 2014 20:42:50 +0000 (15:42 -0500)
commita5388cc58647a6506e62acddc648ed6ca7b76fa5
tree57663211d13315eaf2ccb62656a95c5bc4011914
parent1238789866c94796eb4a3ee4f203481aabec8940
Fix file locking

- Lock in_fd only
- Unlock WIM immediately after commiting mounted image (before
  fuse_main() returns)
- Don't lock WIM for read-only mount
include/wimlib/write.h
src/mount_image.c
src/write.c