From: Joel Becker <Joel.Becker@oracle.com>
To: ocfs2-devel@oss.oracle.com
Subject: [Ocfs2-devel] [PATCH 1/8] Update ocfs2_fs.h to contain all necessary quota structures and constants
Date: Tue, 28 Jul 2009 14:45:07 -0700 [thread overview]
Message-ID: <20090728214507.GD8420@mail.oracle.com> (raw)
In-Reply-To: <1248717216-26617-2-git-send-email-jack@suse.cz>
On Mon, Jul 27, 2009 at 07:53:29PM +0200, Jan Kara wrote:
> diff --git a/include/ocfs2-kernel/ocfs2_fs.h b/include/ocfs2-kernel/ocfs2_fs.h
> index 2140bb3..ad655dc 100644
> --- a/include/ocfs2-kernel/ocfs2_fs.h
> +++ b/include/ocfs2-kernel/ocfs2_fs.h
> @@ -344,6 +344,8 @@ enum {
> #define OCFS2_FIRST_ONLINE_SYSTEM_INODE SLOT_MAP_SYSTEM_INODE
> HEARTBEAT_SYSTEM_INODE,
> GLOBAL_BITMAP_SYSTEM_INODE,
> + USER_QUOTA_SYSTEM_INODE,
> + GROUP_QUOTA_SYSTEM_INODE,
> #define OCFS2_LAST_GLOBAL_SYSTEM_INODE GLOBAL_BITMAP_SYSTEM_INODE
You need to redefine OCFS2_LAST_GLOBAL_SYSTEM_INODE like it is
in the kernel.
> #define OCFS2_GLOBAL_INFO_OFF (sizeof(struct ocfs2_disk_dqheader))
> +#define OCFS2_GLOBAL_TREE_BLK 1
I don't see GLOBAL_TREE_BLK in the kernel.
> /* Information header of global quota file (immediately follows the generic
> * header) */
> @@ -977,6 +986,16 @@ struct ocfs2_global_disk_dqinfo {
> * file */
> };
>
> +/* Header of leaf tree block */
> +struct ocfs2_global_disk_dqdbheader {
> + __le32 dqdh_next_free; /* Number of next block with free entry */
> + __le32 dqdh_prev_free; /* Number of previous block with free entry */
> + __le16 dqdh_entries; /* Number of valid entries in block */
> + __le16 dqdh_pad1;
> + __le32 dqdh_pad2;
> +};
Nor do I see ocfs2_global_disk_dqdbheader.
> +static inline int ocfs2_global_dqstr_in_blk(int blocksize)
> +{
> + return (blocksize - OCFS2_QBLK_RESERVED_SPACE -
> + sizeof(struct ocfs2_global_disk_dqdbheader)) /
> + sizeof(struct ocfs2_global_disk_dqblk);
> +}
> +
Nor ocfs2_global_dqstr_in_blk.
Joel
--
"Not being known doesn't stop the truth from being true."
- Richard Bach
Joel Becker
Principal Software Developer
Oracle
E-mail: joel.becker at oracle.com
Phone: (650) 506-8127
next prev parent reply other threads:[~2009-07-28 21:45 UTC|newest]
Thread overview: 32+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-07-27 17:53 [Ocfs2-devel] [PATCH 0/8] Quota support for ocfs2-tools Jan Kara
2009-07-27 17:53 ` [Ocfs2-devel] [PATCH 1/8] Update ocfs2_fs.h to contain all necessary quota structures and constants Jan Kara
2009-07-28 21:45 ` Joel Becker [this message]
2009-07-29 9:42 ` Jan Kara
2009-07-29 18:19 ` Joel Becker
2009-07-30 16:57 ` Jan Kara
2009-07-27 17:53 ` [Ocfs2-devel] [PATCH 2/8] Provide ocfs2_cached_inode_extend_allocation() Jan Kara
2009-07-28 21:47 ` Joel Becker
2009-07-29 9:46 ` Jan Kara
2009-07-27 17:53 ` [Ocfs2-devel] [PATCH 3/8] Implement quota functions to libocfs2 Jan Kara
2009-07-28 7:55 ` Tao Ma
2009-07-28 8:40 ` Jan Kara
2009-07-28 8:43 ` Tao Ma
2009-07-28 10:08 ` Jan Kara
2009-07-28 22:52 ` Joel Becker
2009-07-29 9:57 ` Jan Kara
2009-07-27 17:53 ` [Ocfs2-devel] [PATCH 4/8] Write out quota info changes on ocfs2_close() Jan Kara
2009-07-28 22:53 ` Joel Becker
2009-07-29 9:58 ` Jan Kara
2009-07-27 17:53 ` [Ocfs2-devel] [PATCH 5/8] Quota support for fsck.ocfs2 Jan Kara
2009-07-28 23:05 ` Joel Becker
2009-07-29 10:07 ` Jan Kara
2009-07-29 14:28 ` Tao Ma
2009-07-29 18:22 ` Joel Becker
2009-07-27 17:53 ` [Ocfs2-devel] [PATCH 6/8] Quota support for mkfs.ocfs2 Jan Kara
2009-07-28 8:11 ` Tao Ma
2009-07-28 8:43 ` Jan Kara
2009-07-28 10:09 ` Jan Kara
2009-07-28 23:07 ` Joel Becker
2009-07-27 17:53 ` [Ocfs2-devel] [PATCH 7/8] Add quota support to tunefs.ocfs2 Jan Kara
2009-07-29 1:04 ` Joel Becker
2009-07-27 17:53 ` [Ocfs2-devel] [PATCH 8/8] Change headers to reflect that quota is now fully supported Jan Kara
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20090728214507.GD8420@mail.oracle.com \
--to=joel.becker@oracle.com \
--cc=ocfs2-devel@oss.oracle.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.