ocfs2: bugfix for hard readonly mount
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest0 of 4 patches 0 repliesNew
Patches in v1 No applies recorded yet
None of the 4 patches the cover letter announces are in this archive.
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.
Cover letter [Ocfs2-devel] [PATCH 0/4] ocfs2: bugfix for hard readonly mount
Quoted 23 lines · Sunil Mushran
Quoted 18 lines · Tiger Yang
These four patches are all related to ocfs2 on hard readonly mount. patch 1 fix oops when umount ocfs2 on hard readonly device. Because
ocfs2_dismount_volume()will callocfs2_cluster_hangup()and then callocfs2_stack_driver_put(), will hitBUG_ON(active_stack == NULL).patch 2 fix oops when do ls or cat in ocfs2 on hard readonly device. Because
ocfs2_open_lock()will callocfs2_cluster_lock()and then callocfs2_dlm_lock(), butactive_stackis NULL.patch 3 fix bug of http://oss.oracle.com/bugzilla/show_bug.cgi?id=1322
ocfs2_statfs,ocfs2_fiemap,ocfs2_get_acl,ocfs2_listxattrandocfs2_xattr_getneedocfs2_inode_lockto get dinode buffer head, but on hard readonly mount, they did not get they expected, so lead to oops.ocfs2_init_security_and_aclandocfs2_test_inode_bitalso calledocfs2_inode_lock(inode, &bh, 0), but they are safe, becauseocfs2_reflinkandocfs2_get_dentrycheck hard read only before them.Quoted 3 lines
patch 4 fix problem of running ls on hard readonly mount can't get the right result.
Becauseocfs2_dentry_lock()return-EROFS. It should return 0.
Quoted 7 lines
Tiger, Thanks. Was this tested with all fs-features enabled? I am worried about quotas. If not, please test that.
Tristan, Please can you cross check these patches. Enable all features in a volume, make it readonly and do mount, ls -lR, umount, read, stat, stat -f. This calls for a test script. We should be able to use loopback. losetup -rf.
Sure,
I'm going to write a dedicated script for sanity check, including these generic fs syscalls.
Tristan
Quoted 3 lines
Thanks
Sunil