 +			printf("Number of inodes too low, increasing to %d\n",tmp_nbinodes);
 +			nbinodes = tmp_nbinodes;
 +		}
- 		if(nbblocks == -1)
- 			error_msg_and_die("filesystem size unspecified");
- 		if(nbinodes == -1)
++
++		if(nbblocks == -1)
++			error_msg_and_die("filesystem size unspecified");
+ 		fs = init_fs(nbblocks, nbinodes, nbresrvd, holes);
+ 	}
+ 	for(i = 0; i < didx; i++)

 	if(optind < (argc - 1))
 		error_msg_and_die("too many arguments");
 	if(optind == (argc - 1))
@@ -2201,6 +2411,46 @@
 	}
 	else
 	{
+		stats.ninodes = 0;
+		stats.nblocks = 0;
+		for(i = 0; i < didx; i++)

+			bucket = bucket->next;
+		}
+	}
+
+	return count;
+}
 
