kernels/linux-2.4.0/fs/fat/misc.c
/*
 * raw_scan_root performs raw_scan_sector on the root directory until the
 * requested entry is found or the end of the directory is reached.
 */
raw_scan_root performs raw_scan_sector on the root directory until the
requested entry is found or the end of the directory is reached.
raw_scan_root performs raw_scan_sector on the root directory until the requested entry is found or the end of the directory is reached .
static int raw_scan_root(struct super_block *sb,const char *name,int *number,int *ino,
    struct buffer_head **res_bh,struct msdos_dir_entry **res_de)
{
	int count,cluster;
	for (count = 0; count < MSDOS_SB(sb)->dir_entries/MSDOS_DPS; count++) {
		if ((cluster = raw_scan_sector(sb,MSDOS_SB(sb)->dir_start+count,
		    name,number,ino,res_bh,res_de)) >= 0) return cluster;
	}
	return -ENOENT;
}
static int raw_scan_root ( struct super_block * sb , const char * name , int * number , int * ino , struct buffer_head * * res_bh , struct msdos_dir_entry * * res_de ) { int count , cluster ; for ( count = 0 ; count < MSDOS_SB ( sb ) -> dir_entries / MSDOS_DPS ; count ++ ) { if ( ( cluster = raw_scan_sector ( sb , MSDOS_SB ( sb ) -> dir_start + count , name , number , ino , res_bh , res_de ) ) >= 0 ) return cluster ; } return - ENOENT ; }
raw_scan_root performs raw_scan_sector on the root directory until the
 requested entry is found or the end of the directory is reached.
raw_scan_root performs raw_scan_sector on the root directory until the requested entry is found or the end of the directory is reached .