~ubuntu-branches/ubuntu/quantal/aufs/quantal

« back to all changes in this revision

Viewing changes to fs/aufs/dir.h

  • Committer: Bazaar Package Importer
  • Author(s): Julian Andres Klode
  • Date: 2008-04-01 18:26:37 UTC
  • mfrom: (1.1.4 upstream)
  • Revision ID: james.westby@ubuntu.com-20080401182637-ujuqq47eiggw4y5w
Tags: 0+20080401-1
* New upstream snapshot
  - Remove bashisms in script (Closes: #471288)
* debian/conf.mk, linux-patch-aufs.kpatches.sysfs_get_dentry:
  - Remove support for this patch, no longer used
* debian/conf.mk:
  - Add hacks for arm to armel (Closes: #473767)
* debian/control:
  - Add Dm-Upload-Allowed
* debian/copyright:
  - Use http://wiki.debian.org/Proposals/CopyrightFormat
* debian/linux-patch-aufs.kpatches.{splice,put_filp}:
  - Add support for Kernel 2.6.24 (and 2.6.25)
* debian/patches:
  - 01_vserver_apparmor: Update patch
  - 06_rt: Add patch for realtime kernel
  - 07_splice_hack: Add hack to support splice operations (Closes: #473430)

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/*
2
 
 * Copyright (C) 2005, 2006, 2007 Junjiro Okajima
 
2
 * Copyright (C) 2005-2008 Junjiro Okajima
3
3
 *
4
4
 * This program, aufs is free software; you can redistribute it and/or modify
5
5
 * it under the terms of the GNU General Public License as published by
16
16
 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
17
17
 */
18
18
 
19
 
/* $Id: dir.h,v 1.23 2007/10/29 04:41:44 sfjro Exp $ */
 
19
/*
 
20
 * directory operations
 
21
 *
 
22
 * $Id: dir.h,v 1.26 2008/03/31 07:45:32 sfjro Exp $
 
23
 */
20
24
 
21
25
#ifndef __AUFS_DIR_H__
22
26
#define __AUFS_DIR_H__
69
73
struct aufs_wh {
70
74
        struct hlist_node       wh_hash;
71
75
        aufs_bindex_t           wh_bindex;
 
76
#ifdef CONFIG_AUFS_SHWH
 
77
        ino_t                   wh_ino;
 
78
        unsigned char           wh_type;
 
79
        /* caution: packed */
 
80
#endif
72
81
        struct aufs_destr       wh_str;
73
82
} __packed;
74
83
 
109
118
                         int limit);
110
119
int nhash_test_known_wh(struct aufs_nhash *whlist, char *name, int namelen);
111
120
int nhash_append_wh(struct aufs_nhash *whlist, char *name, int namelen,
112
 
                    aufs_bindex_t bindex);
 
121
                    ino_t ino, unsigned int d_type, aufs_bindex_t bindex,
 
122
                    unsigned char shwh);
113
123
void au_vdir_free(struct aufs_vdir *vdir);
114
124
int au_vdir_init(struct file *file);
115
125
int au_fill_de(struct file *file, void *dirent, filldir_t filldir);
122
132
        return (full_name_hash(name, len) % AuSize_NHASH);
123
133
}
124
134
 
 
135
static inline
 
136
void au_shwh_init_wh(struct aufs_wh *wh, ino_t ino, unsigned char d_type)
 
137
{
 
138
#ifdef CONFIG_AUFS_SHWH
 
139
        wh->wh_ino = ino;
 
140
        wh->wh_type = d_type;
 
141
#endif
 
142
}
 
143
 
125
144
#endif /* __KERNEL__ */
126
145
#endif /* __AUFS_DIR_H__ */