shithub: ext4srv

Download patch

ref: 1e747751e55eee664f1331c9113bb30f4464593f
parent: 3c3627dae0b3dc59dbe56f59ac6e4c4aa26349d3
author: Sigrid Solveig Haflínudóttir <ftrvxmtrx@gmail.com>
date: Fri Nov 13 02:36:11 EST 2020

clean up traces

--- a/ext4srv.c
+++ b/ext4srv.c
@@ -290,10 +290,8 @@
 		goto error;
 	}
 
-	if((s = fullpath(a)) == nil){
-		fprint(2, "%M/%s: not found\n", a->p, a->path);
+	if((s = fullpath(a)) == nil)
 		goto error;
-	}
 	ext4_mode_get(s, &dirperm);
 
 	/* check if the entry already exists */
@@ -314,10 +312,8 @@
 	perm = r->ifcall.perm & (~perm | (dirperm & perm));
 
 	if(mkdir){
-		if((res = ext4_dir_mk(s)) != 0){
-			fprint(2, "mkdir %s failed\n", s);
+		if((res = ext4_dir_mk(s)) != 0)
 			goto ext4error;
-		}
 		if((a->dir = malloc(sizeof(*a->dir))) == nil)
 			goto Nomem;
 		if((res = ext4_dir_open(a->dir, s)) != 0){
@@ -329,7 +325,6 @@
 		if((a->file = malloc(sizeof(*a->file))) == nil)
 			goto Nomem;
 		if((res = ext4_fopen2(a->file, s, toext4mode(r->ifcall.mode, perm, 1))) != 0){
-			fprint(2, "fopen2 %s failed\n", s);
 			free(a->file);
 			a->file = nil;
 			goto ext4error;
@@ -336,10 +331,8 @@
 		}
 	}
 
-	if((res = ext4_mode_set(s, perm)) != 0){
-		fprint(2, "mode_set %s failed\n", s);
+	if((res = ext4_mode_set(s, perm)) != 0)
 		goto ext4errorrm;
-	}
 	ext4_owner_set(s, a->uid, ext4_inode_get_gid(&inode));
 
 	a->path = strdup(strchr(s+1, '/')+1);