~ubuntu-branches/ubuntu/utopic/aufs/utopic

« back to all changes in this revision

Viewing changes to fs/aufs/export.c

  • Committer: Bazaar Package Importer
  • Author(s): Julian Andres Klode
  • Date: 2008-01-30 15:27:04 UTC
  • mfrom: (1.1.3 upstream)
  • Revision ID: james.westby@ubuntu.com-20080130152704-uvd64xgdg17ro2s8
Tags: 0+20080129-1
* New upstream snapshot
* 01_vserver_apparmor: Combined patch for vServer and AppArmor Kernels
  - AppArmor kernels have no ia_file, do not use it (LP: #182481)
  - AppArmor patch written by Joerg Schirottke for Kanotix (thank you!)
  - Replaces 01_vserver and 06_ubuntu
* 03_missing_headers: Define the magic numbers for XFS and TMPFS
* 04_sec_perm: Do not use security_inode_permission with kernel >= 2.6.24
* Inform about available pre-compiled modules in aufs-source description
* conf.mk:
  - Rewrite automatic configuration part, define a function and call it
  - Activate the AUFS_FAKE_DM only if the lhash patch has not been applied

Show diffs side-by-side

added added

removed removed

Lines of Context:
16
16
 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
17
17
 */
18
18
 
19
 
/* $Id: export.c,v 1.22 2007/11/26 01:34:13 sfjro Exp $ */
 
19
/* $Id: export.c,v 1.23 2008/01/21 04:57:48 sfjro Exp $ */
20
20
 
21
21
#include <linux/version.h>
22
22
#if LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 23)
27
27
/* ---------------------------------------------------------------------- */
28
28
 
29
29
#if LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 23)
30
 
static struct dentry*
 
30
static struct dentry *
31
31
au_call_decode_fh(struct vfsmount *h_mnt, __u32 *fh, int fh_len, int fh_type,
32
32
                  int (*acceptable)(void *, struct dentry *), void *context)
33
33
{
48
48
#define CALL(ops, func) \
49
49
        (((ops)->func) ? ((ops)->func) : export_op_default.func)
50
50
 
51
 
static struct dentry*
 
51
static struct dentry *
52
52
au_call_decode_fh(struct vfsmount *h_mnt, __u32 *fh, int fh_len, int fh_type,
53
53
                  int (*acceptable)(void *, struct dentry *), void *context)
54
54
{
306
306
        return 1;
307
307
}
308
308
 
309
 
static struct dentry*
 
309
static struct dentry *
310
310
decode_by_path(struct super_block *sb, aufs_bindex_t bindex, __u32 *fh,
311
311
               int fh_len, void *context)
312
312
{
414
414
 
415
415
/* ---------------------------------------------------------------------- */
416
416
 
417
 
static struct dentry*
 
417
static struct dentry *
418
418
aufs_decode_fh(struct super_block *sb, __u32 *fh, int fh_len, int fh_type,
419
419
               int (*acceptable)(void *context, struct dentry *de),
420
420
               void *context)
491
491
}
492
492
 
493
493
#if LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 24)
494
 
static struct dentry*
 
494
static struct dentry *
495
495
aufs_fh_to_dentry(struct super_block *sb, struct fid *fid, int fh_len,
496
496
                  int fh_type)
497
497
{