busybox-1.32.0/archival/tar.c
static HardLinkInfo *findHardLinkInfo(HardLinkInfo *hlInfo, struct stat *statbuf)
{
	while (hlInfo) {
		if (statbuf->st_ino == hlInfo->ino
		 && statbuf->st_dev == hlInfo->dev
		) {
			DBG("found hardlink:'%s'", hlInfo->name);
			break;
		}
		hlInfo = hlInfo->next;
	}
	return hlInfo;
}
/* Might be faster (and bigger) if the dev/ino were stored in numeric order ;) */
Might be faster (and bigger) if the dev/ino were stored in numeric order ;)
Might be faster ( and bigger ) if the dev / ino were stored in numeric order ; )
static HardLinkInfo *findHardLinkInfo(HardLinkInfo *hlInfo, struct stat *statbuf)
{
	while (hlInfo) {
		if (statbuf->st_ino == hlInfo->ino
		 && statbuf->st_dev == hlInfo->dev
		) {
			DBG("found hardlink:'%s'", hlInfo->name);
			break;
		}
		hlInfo = hlInfo->next;
	}
	return hlInfo;
}
static HardLinkInfo * findHardLinkInfo ( HardLinkInfo * hlInfo , struct stat * statbuf ) { while ( hlInfo ) { if ( statbuf -> st_ino == hlInfo -> ino && statbuf -> st_dev == hlInfo -> dev ) { DBG ( " " , hlInfo -> name ) ; break ; } hlInfo = hlInfo -> next ; } return hlInfo ; }
Might be faster (and bigger) if the dev/ino were stored in numeric order ;)
Might be faster ( and bigger ) if the dev / ino were stored in numeric order ; )