Skip to content

Add online resize support for ocfs2, take 4

Tao Ma ocfs2-devel 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest4 patches 0 repliesNew

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4Initalize bitmap_cpg of ocfs2_super to be the maximum.take 4fs/ocfs2/super.c+1 -180 replies
2/4Add new ioctl number for OCFS2.take 4Documentation/ioctl-number.txt+1 -00 replies
3/4Add group extend for online resize.take 4fs/ocfs2/Makefile fs/ocfs2/buffer_head_io.c fs/ocfs2/buffer_head_io.h +7 more+518 -70 replies
4/4Implement "GROUP_ADD" for online resize.take 4fs/ocfs2/ioctl.c fs/ocfs2/journal.h fs/ocfs2/ocfs2_fs.h +2 more+268 -00 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [Ocfs2-devel] [PATCH 0/4] Add online resize support for ocfs2, take 4

Mark,
Wish this patch series meets your need.

Changes from V3 to V4 can be found in the patches themselves. They are just some minor fixes, no significant change in the code.

User can do offline resize using tunefs.ocfs2 when a volume isn't mounted. Now the support for online resize is added into ocfs2.

Please note that the node where online resize goes must already has the volume mounted. We don't mount it behind the user and the operation would fail if we find it isn't mounted. As for other nodes, we don't care whether the volume is mounted or not.

global_bitmap, super block and all the backups will be updated in the kernel. And if super block or backup's update fails, we just output some error message in dmesg and continue the work.