| To: | Ankit Jain <me@xxxxxxxxxxxxx> |
|---|---|
| Subject: | Re: [PATCH] fs: Add new pre-allocation ioctls to vfs for compatibility with legacy xfs ioctls |
| From: | Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx> |
| Date: | Fri, 30 Jan 2009 16:22:52 -0800 |
| Cc: | viro@xxxxxxxxxxxxxxxxxx, hch@xxxxxxxxxxxxx, linux-fsdevel@xxxxxxxxxxxxxxx, mfasheh@xxxxxxxx, joel.becker@xxxxxxxxxx, ocfs2-devel@xxxxxxxxxxxxxx, linux-kernel@xxxxxxxxxxxxxxx, xfs-masters@xxxxxxxxxxx, xfs@xxxxxxxxxxx |
| In-reply-to: | <4980C71F.1010804@xxxxxxxxxxxxx> |
| References: | <4980C71F.1010804@xxxxxxxxxxxxx> |
On Thu, 29 Jan 2009 02:29:11 +0530
Ankit Jain <me@xxxxxxxxxxxxx> wrote:
> --- xfs.orig/include/linux/falloc.h 2009-01-21 21:03:28.076324621 +0100
> +++ xfs/include/linux/falloc.h 2009-01-27 20:36:59.190423995 +0100
> @@ -3,4 +3,48 @@
>
> #define FALLOC_FL_KEEP_SIZE 0x01 /* default is extend size */
>
> +#ifdef __KERNEL__
> +
> +/*
> + * Space reservation ioctls and argument structure
> + * are designed to be compatible with the legacy XFS ioctls.
> + */
> +struct space_resv {
> + __s16 l_type;
> + __s16 l_whence;
> + __s64 l_start;
> + __s64 l_len; /* len == 0 means until end of file */
> + __s32 l_sysid;
> + __u32 l_pid;
> + __s32 l_pad[4]; /* reserve area */
> +};
> +
> +#define F_IOC_RESVSP _IOW('X', 40, struct space_resv)
> +#define F_IOC_RESVSP64 _IOW('X', 42, struct space_resv)
Should this stuff be inside #ifdef __KERNEL__? It is shared with userspace.
Are we sure that the aligment of l_start will be reliably the same
across all compilers and versions thereof for all time?
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | + xfs-dont-reallocate-sxp-variable-passed-into-xfs_swapext.patch added to -mm tree, akpm |
|---|---|
| Next by Date: | Re: [PATCH] fs: Add new pre-allocation ioctls to vfs for compatibility with legacy xfs ioctls, Arnd Bergmann |
| Previous by Thread: | [PATCH] fs: Add new pre-allocation ioctls to vfs for compatibility with legacy xfs ioctls, Ankit Jain |
| Next by Thread: | Re: [PATCH] fs: Add new pre-allocation ioctls to vfs for compatibility with legacy xfs ioctls, Arnd Bergmann |
| Indexes: | [Date] [Thread] [Top] [All Lists] |