]> git.baikalelectronics.ru Git - kernel.git/commit
[PATCH 2/2] ocfs2: Implement group add for online resize
authorTao Ma <tao.ma@oracle.com>
Tue, 18 Dec 2007 07:47:25 +0000 (15:47 +0800)
committerMark Fasheh <mark.fasheh@oracle.com>
Fri, 25 Jan 2008 23:04:24 +0000 (15:04 -0800)
commit8c04fc136d89545169eb467a08697d92647b5933
treed256570ad048e27741970517929bc3c6d4c2b656
parente3e3bdd450c9564f748f06b42748fa1d2eea2660
[PATCH 2/2] ocfs2: Implement group add for online resize

This patch adds the ability for a userspace program to request that a
properly formatted cluster group be added to the main allocation bitmap for
an Ocfs2 file system. The request is made via an ioctl, OCFS2_IOC_GROUP_ADD.
On a high level, this is similar to ext3, but we use a different ioctl as
the structure which has to be passed through is different.

During an online resize, tunefs.ocfs2 will format any new cluster groups
which must be added to complete the resize, and call OCFS2_IOC_GROUP_ADD on
each one. Kernel verifies that the core cluster group information is valid
and then does the work of linking it into the global allocation bitmap.

Signed-off-by: Tao Ma <tao.ma@oracle.com>
Signed-off-by: Mark Fasheh <mark.fasheh@oracle.com>
fs/ocfs2/ioctl.c
fs/ocfs2/journal.h
fs/ocfs2/ocfs2_fs.h
fs/ocfs2/resize.c
fs/ocfs2/resize.h