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

« back to all changes in this revision

Viewing changes to fs/aufs/super.h

  • 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: super.h,v 1.66 2007/12/10 01:19:43 sfjro Exp $ */
 
19
/* $Id: super.h,v 1.67 2007/12/17 03:30:59 sfjro Exp $ */
20
20
 
21
21
#ifndef __AUFS_SUPER_H__
22
22
#define __AUFS_SUPER_H__
242
242
        return ret;
243
243
}
244
244
 
 
245
static inline int au_test_xfs(struct super_block *sb)
 
246
{
 
247
        int ret = 0;
 
248
#if LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 24) \
 
249
        && (defined(CONFIG_XFS_FS) || defined(CONFIG_XFS_FS_MODULE))
 
250
#ifdef XFS_SB_MAGIC
 
251
        BUILD_BUG_ON(XFS_SB_MAGIC != 0x58465342);
 
252
        ret = (sb->s_magic == XFS_SB_MAGIC);
 
253
#else
 
254
        ret = !strcmp(au_sbtype(sb), "xfs");
 
255
#endif
 
256
#endif
 
257
        return ret;
 
258
}
 
259
 
245
260
static inline int au_test_nfs(struct super_block *sb)
246
261
{
247
262
#if defined(CONFIG_NFS_FS) || defined(CONFIG_NFS_FS_MODULE)