struct yaffs_param *param;
int read_only = 0;
+ int inband_tags = 0;
struct yaffs_options options;
yaffs_version = 1;
}
- if(yaffs_verify_mtd(mtd, yaffs_version, options.inband_tags) < 0)
+ if (mtd->oobavail < sizeof(struct yaffs_packed_tags2) ||
+ options.inband_tags)
+ inband_tags = 1;
+
+ if(yaffs_verify_mtd(mtd, yaffs_version, inband_tags) < 0)
return NULL;
/* OK, so if we got here, we have an MTD that's NAND and looks
param->n_reserved_blocks = 5;
param->n_caches = (options.no_cache) ? 0 : 10;
-
- if (mtd->oobavail < sizeof(struct yaffs_packed_tags2) ||
- options.inband_tags)
- param->inband_tags = 1;
+ param->inband_tags = inband_tags;
param->enable_xattr = 1;
if (options.lazy_loading_overridden)