shithub: ext4srv

Download patch

ref: 7e6af6b00ee3034daa6a1a1e9c6cb97c94b57196
parent: 55ae64148184b266f33fc4fcbc6e8a5d9914b5cf
author: Sigrid Solveig Haflínudóttir <ftrvxmtrx@gmail.com>
date: Sat Nov 14 11:18:21 EST 2020

fix Aux type on Tcreate

--- a/README.md
+++ b/README.md
@@ -1,6 +1,9 @@
 # ext4srv
 
-Ext[2-4] file system for Plan 9. *WIP*
+Ext[2-4] file system for Plan 9.
+
+Supports recovery, journal, extents and all basic operations.  *NOT*
+heavily tested yet, use at your own risk.
 
 ## Installation
 
--- a/ext4srv.c
+++ b/ext4srv.c
@@ -318,6 +318,7 @@
 	perm = r->ifcall.perm & (~perm | (dirperm & perm));
 
 	if(mkdir){
+		a->type = Adir;
 		if((res = ext4_dir_mk(s)) != 0)
 			goto ext4error;
 		if((a->dir = malloc(sizeof(*a->dir))) == nil)
@@ -328,6 +329,7 @@
 			goto ext4errorrm;
 		}
 	}else{
+		a->type = Afile;
 		if((a->file = malloc(sizeof(*a->file))) == nil)
 			goto Nomem;
 		if((res = ext4_fopen2(a->file, s, toext4mode(r->ifcall.mode, perm, 1))) != 0){