diff options
| author | Deepak Saxena <dsaxena@laptop.org> | 2008-07-22 12:54:01 -0700 |
|---|---|---|
| committer | Deepak Saxena <dsaxena@laptop.org> | 2008-07-22 12:54:01 -0700 |
| commit | d86980aeb8d0adb104c01d04a48ef9a3198a925a (patch) | |
| tree | b697811717af6143a7e1cc1450e83931d5c2ad1c /include/linux | |
| parent | 72615d8d703bdce1178fa08f0777ca8ee4430ba3 (diff) | |
| download | lwn-d86980aeb8d0adb104c01d04a48ef9a3198a925a.tar.gz lwn-d86980aeb8d0adb104c01d04a48ef9a3198a925a.zip | |
Merge UnionFS 2.3.3
Merge latest version of UnionFS into OLPC tree for purposes
of testing solutions to full NAND issues.
Signed-off-by: Deepak Saxena <dsaxena@laptop.org>
Diffstat (limited to 'include/linux')
| -rw-r--r-- | include/linux/fs_stack.h | 21 | ||||
| -rw-r--r-- | include/linux/magic.h | 2 | ||||
| -rw-r--r-- | include/linux/splice.h | 5 | ||||
| -rw-r--r-- | include/linux/union_fs.h | 22 |
4 files changed, 45 insertions, 5 deletions
diff --git a/include/linux/fs_stack.h b/include/linux/fs_stack.h index bb516ceeefc9..6b52faf152da 100644 --- a/include/linux/fs_stack.h +++ b/include/linux/fs_stack.h @@ -1,17 +1,28 @@ +/* + * Copyright (c) 2006-2007 Erez Zadok + * Copyright (c) 2006-2007 Josef 'Jeff' Sipek + * Copyright (c) 2006-2007 Stony Brook University + * Copyright (c) 2006-2007 The Research Foundation of SUNY + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License version 2 as + * published by the Free Software Foundation. + */ + #ifndef _LINUX_FS_STACK_H #define _LINUX_FS_STACK_H -/* This file defines generic functions used primarily by stackable +/* + * This file defines generic functions used primarily by stackable * filesystems; none of these functions require i_mutex to be held. */ #include <linux/fs.h> /* externs for fs/stack.c */ -extern void fsstack_copy_attr_all(struct inode *dest, const struct inode *src, - int (*get_nlinks)(struct inode *)); - -extern void fsstack_copy_inode_size(struct inode *dst, const struct inode *src); +extern void fsstack_copy_attr_all(struct inode *dest, const struct inode *src); +extern void fsstack_copy_inode_size(struct inode *dst, + const struct inode *src); /* inlines */ static inline void fsstack_copy_attr_atime(struct inode *dest, diff --git a/include/linux/magic.h b/include/linux/magic.h index 1fa0c2ce4dec..67043ed5fe45 100644 --- a/include/linux/magic.h +++ b/include/linux/magic.h @@ -35,6 +35,8 @@ #define REISER2FS_SUPER_MAGIC_STRING "ReIsEr2Fs" #define REISER2FS_JR_SUPER_MAGIC_STRING "ReIsEr3Fs" +#define UNIONFS_SUPER_MAGIC 0xf15f083d + #define SMB_SUPER_MAGIC 0x517B #define USBDEVICE_SUPER_MAGIC 0x9fa2 #define CGROUP_SUPER_MAGIC 0x27e0eb diff --git a/include/linux/splice.h b/include/linux/splice.h index 528dcb93c2f2..4b5727c169eb 100644 --- a/include/linux/splice.h +++ b/include/linux/splice.h @@ -70,5 +70,10 @@ extern ssize_t splice_to_pipe(struct pipe_inode_info *, struct splice_pipe_desc *); extern ssize_t splice_direct_to_actor(struct file *, struct splice_desc *, splice_direct_actor *); +extern long vfs_splice_from(struct pipe_inode_info *pipe, struct file *out, + loff_t *ppos, size_t len, unsigned int flags); +extern long vfs_splice_to(struct file *in, loff_t *ppos, + struct pipe_inode_info *pipe, size_t len, + unsigned int flags); #endif diff --git a/include/linux/union_fs.h b/include/linux/union_fs.h new file mode 100644 index 000000000000..a467de06a60f --- /dev/null +++ b/include/linux/union_fs.h @@ -0,0 +1,22 @@ +/* + * Copyright (c) 2003-2007 Erez Zadok + * Copyright (c) 2005-2007 Josef 'Jeff' Sipek + * Copyright (c) 2003-2007 Stony Brook University + * Copyright (c) 2003-2007 The Research Foundation of SUNY + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License version 2 as + * published by the Free Software Foundation. + */ + +#ifndef _LINUX_UNION_FS_H +#define _LINUX_UNION_FS_H + +/* + * DEFINITIONS FOR USER AND KERNEL CODE: + */ +# define UNIONFS_IOCTL_INCGEN _IOR(0x15, 11, int) +# define UNIONFS_IOCTL_QUERYFILE _IOR(0x15, 15, int) + +#endif /* _LINUX_UNIONFS_H */ + |
