Date: Wed, 23 May 2012 14:50:24 +0000 From: gpf@FreeBSD.org To: svn-soc-all@FreeBSD.org Subject: socsvn commit: r236203 - soc2012/gpf/pefs_kmod/sbin/pefs Message-ID: <20120523145024.9C77A106564A@hub.freebsd.org>
next in thread | raw e-mail | index | archive | help
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;
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20120523145024.9C77A106564A>