[LU-10641] e2fsck: ext2fs_write_inode: Attempt to write to filesystem opened read-only Created: 08/Feb/18  Updated: 04/Oct/19  Resolved: 04/Oct/19

Status: Closed
Project: Lustre
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: Bug Priority: Minor
Reporter: Vladimir Saveliev Assignee: Vladimir Saveliev
Resolution: Fixed Votes: 0
Labels: patch

Epic/Theme: e2fsprogs
Severity: 3
Rank (Obsolete): 9223372036854775807

 Description   

Way to reproduce:

mkfs.ext4 -O large_xattr /path/to/dev
#
mount -t ldiskfs /path/to/dev /mnt
#
touch /mnt/file
#
# create xattr stored on ea_inode
#
setfattr -n user.longxattr -v $(printf '=%.0s' {1..4054}) /mnt/file
#
umount /mnt
#
# corrupt the filesystem so that e2fsck will try to attach ea_inode to lost+found:
#
debugfs -w -R 'clri file' /path/to/dev
#
# e2fsck in readonly mode tries to write node
#
# e2fsck -fn /path/to/dev
e2fsck 1.42.13.wc5 (15-Apr-2016)
Pass 1: Checking inodes, blocks, and sizes
Pass 2: Checking directory structure
Entry 'file' in / (2) has deleted/unused inode 12.  Clear? no
 
Entry 'file' in / (2) has an incorrect filetype (was 1, should be 0).
Fix? no
 
Pass 3: Checking directory connectivity
Pass 4: Checking reference counts
ext2fs_write_inode: Attempt to write to filesystem opened read-only while writing inode 13 in disconnect_inode
 
/path/to/dev: ********** WARNING: Filesystem still has errors **********



 Comments   
Comment by Gerrit Updater [ 08/Feb/18 ]

Vladimir Saveliev (c17830@cray.com) uploaded a new patch: https://review.whamcloud.com/31226
Subject: LU-10641 e2fsck: avoid write inode attemp in readonly mode
Project: tools/e2fsprogs
Branch: master-lustre
Current Patch Set: 1
Commit: 9cb12415e5eb08105e108d04d5dfaf93b93c3fa5

Comment by Gerrit Updater [ 02/May/18 ]

Andreas Dilger (andreas.dilger@intel.com) merged in patch https://review.whamcloud.com/31226/
Subject: LU-10641 e2fsck: avoid write inode attemp in readonly mode
Project: tools/e2fsprogs
Branch: master-lustre
Current Patch Set:
Commit: 40255f2eaf6e11a294dfd3f7871d551a0c9d0511

Comment by Vladimir Saveliev [ 04/Oct/19 ]

patch is merged, closing the ticket

Generated at Sat Feb 10 02:36:54 UTC 2024 using Jira 9.4.14#940014-sha1:734e6822bbf0d45eff9af51f82432957f73aa32c.