@@ -164,7 +164,7 @@ int bpc_path_remove(bpc_deltaCount_info *deltaInfo, char *path, int compress)
164164 * Reference count all the files below the directory path, based on the attrib
165165 * files in and below path.
166166 */
167- int bpc_path_refCountAll (bpc_deltaCount_info * deltaInfo , char * path , int compress , int incr )
167+ int bpc_path_refCountAllInodeMax (bpc_deltaCount_info * deltaInfo , char * path , int compress , int incr , unsigned int * inodeMax )
168168{
169169 char filePath [BPC_MAXPATHLEN ];
170170 STRUCT_STAT st ;
@@ -217,7 +217,7 @@ int bpc_path_refCountAll(bpc_deltaCount_info *deltaInfo, char *path, int compres
217217 errorCnt ++ ;
218218 } else {
219219 if ( BPC_LogLevel >= 9 ) bpc_logMsgf ("bpc_path_refCountAll: adjusting ref counts from attrib file %s\n" , filePath );
220- bpc_attrib_dirRefCount (deltaInfo , & dir , incr );
220+ bpc_attrib_dirRefCountInodeMax (deltaInfo , & dir , incr , inodeMax );
221221 }
222222 bpc_attrib_dirDestroy (& dir );
223223 }
@@ -230,13 +230,22 @@ int bpc_path_refCountAll(bpc_deltaCount_info *deltaInfo, char *path, int compres
230230 if ( dirList ) {
231231 for ( dirListP = dirList ; dirListP < dirList + dirListLen ; dirListP += strlen (dirListP ) + 1 ) {
232232 snprintf (filePath , sizeof (filePath ), "%s/%s" , path , dirListP );
233- errorCnt += bpc_path_refCountAll (deltaInfo , filePath , compress , incr );
233+ errorCnt += bpc_path_refCountAllInodeMax (deltaInfo , filePath , compress , incr , inodeMax );
234234 }
235235 free (dirList );
236236 }
237237 return errorCnt ;
238238}
239239
240+ /*
241+ * Reference count all the files below the directory path, based on the attrib
242+ * files in and below path.
243+ */
244+ int bpc_path_refCountAll (bpc_deltaCount_info * deltaInfo , char * path , int compress , int incr )
245+ {
246+ return bpc_path_refCountAllInodeMax (deltaInfo , path , compress , incr , NULL );
247+ }
248+
240249/*
241250 * Add an exclusive lock to the byte range in the given file.
242251 * Blocks until the lock becomes available.
0 commit comments