socsvn commit: r236203 - soc2012/gpf/pefs_kmod/sbin/pefs

gpf at FreeBSD.org gpf at FreeBSD.org
Wed May 23 14:50:26 UTC 2012


Author: gpf
Date: Wed May 23 14:50:24 2012
New Revision: 236203
URL: http://svnweb.FreeBSD.org/socsvn/?view=rev&rev=236203

Log:
  forgot to remove var fsroot which isn't needed now as semantic checks have
  been moved to addchecklist().
  

Modified:
  soc2012/gpf/pefs_kmod/sbin/pefs/pefs_checksum.c

Modified: soc2012/gpf/pefs_kmod/sbin/pefs/pefs_checksum.c
==============================================================================
--- soc2012/gpf/pefs_kmod/sbin/pefs/pefs_checksum.c	Wed May 23 14:45:39 2012	(r236202)
+++ soc2012/gpf/pefs_kmod/sbin/pefs/pefs_checksum.c	Wed May 23 14:50:24 2012	(r236203)
@@ -350,19 +350,13 @@
  * 		B3) file entry is added to hash table. (separate chaining is used)
  */
 static int
-pefs_create_in_memory_db(FILE *fpin, char *fsroot, const EVP_MD *md, uint8_t hash_len,
+pefs_create_in_memory_db(FILE *fpin, const EVP_MD *md, uint8_t hash_len,
 	struct hash_table *checksum_hash_tablep)
 {
-	struct statfs fs;
 	struct file_header *fhp;
 	int error;
 	uint32_t nfiles;
 
-	if (statfs(fsroot, &fs) == -1) {
-		pefs_warn("statfs failed: %s: %s", fsroot, strerror(errno));
-		return (PEFS_ERR_SYS);
-	}
-
 	error = pefs_count_file_entries(fpin, &nfiles);
 	if (error != 0)
 		return (error);
@@ -421,7 +415,7 @@
 		return (PEFS_ERR_IO);
 	}
 
-	error = pefs_create_in_memory_db(fpin, fsroot, md, hash_len,
+	error = pefs_create_in_memory_db(fpin, md, hash_len,
 		&checksum_hash_table);
 	if (error != 0)
 		goto out;


More information about the svn-soc-all mailing list