summaryrefslogtreecommitdiff
path: root/fs/ext4/ext4_write.c
diff options
context:
space:
mode:
authorTom Rini <trini@konsulko.com>2019-03-22 19:09:58 -0400
committerTom Rini <trini@konsulko.com>2019-03-22 19:09:58 -0400
commitcfb3e102c4bdf96a41cbd3eeb1d3a9a56c69c46c (patch)
tree5951f299b8b05cb6011deb8522a8b883a5d260e2 /fs/ext4/ext4_write.c
parent7b80644e271544848db90fb0407d67b3e3749a8e (diff)
parent2e7365518acdb8fb6e9be332c8a6c57b457188d9 (diff)
downloadu-boot-cfb3e102c4bdf96a41cbd3eeb1d3a9a56c69c46c.tar.gz
Merge branch '2019-03-22-master-imports'
- Don't attempt to write to ext4 volumes with the metadata_csum feature we don't support - Correct how we build dtb files. - Fix regression on SPL_FIT with FIT_IMAGE_TINY - Minor TI platform fixes
Diffstat (limited to 'fs/ext4/ext4_write.c')
-rw-r--r--fs/ext4/ext4_write.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/fs/ext4/ext4_write.c b/fs/ext4/ext4_write.c
index a7f543f7df..4eb77c327e 100644
--- a/fs/ext4/ext4_write.c
+++ b/fs/ext4/ext4_write.c
@@ -864,6 +864,12 @@ int ext4fs_write(const char *fname, unsigned char *buffer,
printf("error in File System init\n");
return -1;
}
+
+ if (le32_to_cpu(fs->sb->feature_ro_compat) & EXT4_FEATURE_RO_COMPAT_METADATA_CSUM) {
+ printf("Unsupported feature metadata_csum found, not writing.\n");
+ return -1;
+ }
+
inodes_per_block = fs->blksz / fs->inodesz;
parent_inodeno = ext4fs_get_parent_inode_num(fname, filename, F_FILE);
if (parent_inodeno == -1)