[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20170626134348.1240-10-tahsin@google.com>
Date: Mon, 26 Jun 2017 06:43:46 -0700
From: Tahsin Erdogan <tahsin@...gle.com>
To: Andreas Dilger <adilger@...ger.ca>,
"Darrick J . Wong" <darrick.wong@...cle.com>,
Theodore Ts'o <tytso@....edu>, linux-ext4@...r.kernel.org
Cc: Tahsin Erdogan <tahsin@...gle.com>
Subject: [PATCH 10/12] fuse2fs: refuse to mount fs with ea_inode feature
ext2fs_xattr_set() currently does not support creating xattr inodes,
so allowing fuse2fs to mount a filesystem with ea_inode feature could
lead to corruption. Refuse to mount if the ea_inode feature is set.
Signed-off-by: Tahsin Erdogan <tahsin@...gle.com>
---
misc/fuse2fs.c | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/misc/fuse2fs.c b/misc/fuse2fs.c
index b5897685c466..956348f8f876 100644
--- a/misc/fuse2fs.c
+++ b/misc/fuse2fs.c
@@ -3786,6 +3786,12 @@ int main(int argc, char *argv[])
global_fs->priv_data = &fctx;
ret = 3;
+ if (ext2fs_has_feature_ea_inode(global_fs->super)) {
+ printf(_("%s: fuse2fs does not support ea_inode feature.\n"),
+ fctx.device);
+ goto out;
+ }
+
if (ext2fs_has_feature_journal_needs_recovery(global_fs->super)) {
if (!fctx.ro) {
printf(_("%s: recovering journal\n"), fctx.device);
--
2.13.1.611.g7e3b11ae1-goog
Powered by blists - more mailing lists