/* @itr: iterator to initialize @parent: the iterator pointing at a directory entry in the parent directory of the directory to iterate  */
static void fat_itr_child(fat_itr *itr, fat_itr *parent)
/* @itr: iterator to initialize @parent: the iterator pointing at a directory entry in the parent directory of the directory to iterate  */
static void fat_itr_child(fat_itr *itr, fat_itr *parent)
{
	fsdata *mydata = parent->fsdata;
	unsigned clustnum = START(parent->dent);
	assert(fat_itr_isdir(parent));
	itr->fsdata = parent->fsdata;
	itr->start_clust = clustnum;
	if (clustnum > 0) {
		itr->clust = clustnum;
		itr->next_clust = clustnum;
		itr->is_root = 0;
	} else {
		itr->clust = parent->fsdata->root_cluster;
		itr->next_clust = parent->fsdata->root_cluster;
		itr->is_root = 1;
	}
	itr->dent = NULL;
	itr->remaining = 0;
	itr->last_cluster = 0;
}