

Make jfsck() lock the transaction file instead of the real one.



---

 cur-root/libjio.c |    2 +-
 1 files changed, 1 insertion(+), 1 deletion(-)

diff -puN libjio.c~jfsck_lock_transaction libjio.c
--- cur/libjio.c~jfsck_lock_transaction	2004-05-05 15:08:15.000000000 -0300
+++ cur-root/libjio.c	2004-05-05 15:08:15.000000000 -0300
@@ -757,7 +757,7 @@ int jfsck(char *name, struct jfsck_resul
 
 		/* try to lock the transaction file, if it's locked then it is
 		 * currently being used so we skip it */
-		rv = plockf(fd, F_TLOCK, 0, 0);
+		rv = plockf(tfd, F_TLOCK, 0, 0);
 		if (rv == -1) {
 			res->in_progress++;
 			goto loop;

_
