projects
/
yaffs2.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Handle inband tags flag better
[yaffs2.git]
/
yaffs_vfs_multi.c
diff --git
a/yaffs_vfs_multi.c
b/yaffs_vfs_multi.c
index b06743608364134a1b1df7c61b3a798055e569a1..09aed4afa45f62911d0c3337b1c7e4de154db711 100644
(file)
--- a/
yaffs_vfs_multi.c
+++ b/
yaffs_vfs_multi.c
@@
-2605,6
+2605,7
@@
static struct super_block *yaffs_internal_read_super(int yaffs_version,
struct yaffs_param *param;
int read_only = 0;
struct yaffs_param *param;
int read_only = 0;
+ int inband_tags = 0;
struct yaffs_options options;
struct yaffs_options options;
@@
-2683,7
+2684,11
@@
static struct super_block *yaffs_internal_read_super(int yaffs_version,
yaffs_version = 1;
}
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
return NULL;
/* OK, so if we got here, we have an MTD that's NAND and looks
@@
-2744,10
+2749,7
@@
static struct super_block *yaffs_internal_read_super(int yaffs_version,
param->n_reserved_blocks = 5;
param->n_caches = (options.no_cache) ? 0 : 10;
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)
param->enable_xattr = 1;
if (options.lazy_loading_overridden)