shithub: 9pro

Download patch

ref: 0f081a707ef163222e261699a9207ad3300faf9a
parent: 1a8989a556d7eebe4780f07ae89462f681fe733a
author: Sigrid Solveig Haflínudóttir <[email protected]>
date: Tue May 25 07:01:29 EDT 2021

9gc: disable batching of T-messages (make it work with unionfs)

--- a/9gc.c
+++ b/9gc.c
@@ -182,9 +182,15 @@
 	switch (r->type) {
 	case Rversion:
 		c9attach(ctx, &tag, Rootfid, C9nofid, "none", NULL);
+		break;
+
+	case Rattach:
 		path[0] = channel;
 		path[1] = NULL;
 		c9walk(ctx, &tag, Rootfid, Chatfid, path);
+		break;
+
+	case Rwalk:
 		c9open(ctx, &tag, Chatfid, C9rdwr);
 		break;
 
@@ -223,9 +229,15 @@
 	switch (r->type) {
 	case Rversion:
 		c9attach(ctx, &tag, Rootfid, C9nofid, "none", NULL);
+		break;
+
+	case Rattach:
 		path[0] = "index";
 		path[1] = NULL;
 		c9walk(ctx, &tag, Rootfid, Indexfid, path);
+		break;
+
+	case Rwalk:
 		c9open(ctx, &tag, Indexfid, C9read);
 		break;