diff options
author | Tao Ma <tao.ma@oracle.com> | 2007-12-18 08:47:25 +0100 |
---|---|---|
committer | Mark Fasheh <mark.fasheh@oracle.com> | 2008-01-26 00:04:24 +0100 |
commit | 7909f2bf835376a20d6dbf853eb459a27566eba2 (patch) | |
tree | d256570ad048e27741970517929bc3c6d4c2b656 /fs/ocfs2/resize.h | |
parent | [PATCH 1/2] ocfs2: Add group extend for online resize (diff) | |
download | linux-7909f2bf835376a20d6dbf853eb459a27566eba2.tar.xz linux-7909f2bf835376a20d6dbf853eb459a27566eba2.zip |
[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>
Diffstat (limited to 'fs/ocfs2/resize.h')
-rw-r--r-- | fs/ocfs2/resize.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/ocfs2/resize.h b/fs/ocfs2/resize.h index 3acb79af451b..f38841abf10b 100644 --- a/fs/ocfs2/resize.h +++ b/fs/ocfs2/resize.h @@ -27,5 +27,6 @@ #define OCFS2_RESIZE_H int ocfs2_group_extend(struct inode * inode, int new_clusters); +int ocfs2_group_add(struct inode *inode, struct ocfs2_new_group_input *input); #endif /* OCFS2_RESIZE_H */ |