~barry/ubuntu/maverick/fuse/bug-697792-m

« back to all changes in this revision

Viewing changes to kernel/fuse_i.h

  • Committer: Bazaar Package Importer
  • Author(s): Colin Watson
  • Date: 2007-08-04 08:09:00 UTC
  • mfrom: (1.1.8 upstream)
  • Revision ID: james.westby@ubuntu.com-20070804080900-m1e9xpk5eitzmelg
Tags: 2.7.0-1ubuntu1
* Resynchronise with Debian (LP: #128292). Remaining changes:
  - Don't install the init script; install the udev rule and the module
    configuration file instead.
  - debian/45-fuse.rules: set /dev/fuse group to fuse.
  - debian/fuse-utils.modprobe: module configuration file that mounts the
    control filesystem when fuse is loaded and unmounts it when fuse is
    unloaded, along with checking that the control FS is mounting before
    unmounting it.
  - debian/fuse-utils.install: add the udev rule, the module configuration
    file, and ulockmgr_server.
  - Load fuse on install, and set it so it gets loaded on reboot.
  - Move fusermount and ulockmgr_server to /bin and associated libraries
    to /lib.
* Use dpkg-query to fetch conffile md5sums rather than parsing
  /var/lib/dpkg/status directly.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/*
2
2
  FUSE: Filesystem in Userspace
3
 
  Copyright (C) 2001-2006  Miklos Szeredi <miklos@szeredi.hu>
 
3
  Copyright (C) 2001-2007  Miklos Szeredi <miklos@szeredi.hu>
4
4
 
5
5
  This program can be distributed under the terms of the GNU GPL.
6
6
  See the file COPYING.
9
9
#ifdef FUSE_MAINLINE
10
10
#include <linux/fuse.h>
11
11
#else
12
 
#include "fuse_kernel.h"
13
12
#include <linux/version.h>
14
 
#include <linux/utsname.h>
15
13
 
16
14
#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,9)
17
15
#error Kernel versions earlier than 2.6.9 are not supported
41
39
#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,19)
42
40
#  define KERNEL_2_6_19_PLUS
43
41
#endif
 
42
#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,21)
 
43
#  define KERNEL_2_6_21_PLUS
 
44
#endif
 
45
#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,22)
 
46
#  define KERNEL_2_6_22_PLUS
 
47
#endif
44
48
 
45
49
#if defined(__arm__) && LINUX_VERSION_CODE < KERNEL_VERSION(2,6,20)
46
50
#define DCACHE_BUG
47
51
#endif
 
52
#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,15)
 
53
#define kmem_cache kmem_cache_s
 
54
#endif
48
55
 
 
56
#include "fuse_kernel.h"
49
57
#include "config.h"
50
58
#endif /* FUSE_MAINLINE */
51
59
#include <linux/fs.h>
80
88
#ifndef HAVE_CONFIG_BLOCK
81
89
#define CONFIG_BLOCK
82
90
#endif
 
91
#ifndef FS_HAS_SUBTYPE
 
92
#define FS_HAS_SUBTYPE 0
 
93
#endif
 
94
#ifndef FS_SAFE
 
95
#define FS_SAFE 0
 
96
#endif
83
97
 
84
98
/** Max number of pages that can be used in a single read request */
85
99
#define FUSE_MAX_PAGES_PER_REQ 32
617
631
 * Remove connection from control filesystem
618
632
 */
619
633
void fuse_ctl_remove_conn(struct fuse_conn *fc);
 
634
 
 
635
/**
 
636
 * Is file type valid?
 
637
 */
 
638
int fuse_valid_type(int m);