[Tux3] Userspace : Add sync_super to tux3_release

Chinmay Kamat chinmaykamat at gmail.com
Sat Jan 24 14:03:12 PST 2009


Added a sync_super() to tux3_release in tux3fuse.c

diff -r 56a2263e615c user/tux3fuse.c
--- a/user/tux3fuse.c	Sat Jan 24 13:21:38 2009 -0800
+++ b/user/tux3fuse.c	Sun Jan 25 03:29:20 2009 +0530
@@ -543,9 +543,14 @@
 
 static void tux3_release(fuse_req_t req, fuse_ino_t ino, struct fuse_file_info *fi)
 {
+	trace("release (%Lx)", (L)ino);
 	if (ino != FUSE_ROOT_ID) {
 		struct inode *inode = (struct inode *)(unsigned long)fi->fh;
 		tuxclose(inode);
+		if ((errno = -sync_super(sb))) {
+			fuse_reply_err(req, errno);
+			return;
+		}
 	}
 	fuse_reply_err(req, 0);
 }


Regards,
Chinmay Kamat
Kushal Dalmia
Gaurav Tungatkar
Amey Magar
-------------- next part --------------
A non-text attachment was scrubbed...
Name: release.diff
Type: text/x-patch
Size: 519 bytes
Desc: not available
URL: <http://phunq.net/pipermail/tux3/attachments/20090125/f725b46c/attachment.bin>
-------------- next part --------------
_______________________________________________
Tux3 mailing list
Tux3 at tux3.org
http://mailman.tux3.org/cgi-bin/mailman/listinfo/tux3


More information about the Tux3 mailing list