1 /* -*- mode: c; c-basic-offset: 8; indent-tabs-mode: nil; -*-
2 * vim:expandtab:shiftwidth=8:tabstop=8:
4 * Copyright (C) 2002 Cluster File Systems, Inc.
6 * This file is part of Lustre, http://www.lustre.org.
8 * Lustre is free software; you can redistribute it and/or
9 * modify it under the terms of version 2 of the GNU General Public
10 * License as published by the Free Software Foundation.
12 * Lustre is distributed in the hope that it will be useful,
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 * GNU General Public License for more details.
17 * You should have received a copy of the GNU General Public License
18 * along with Lustre; if not, write to the Free Software
19 * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
26 #ifndef OBD_FILTER_DEVICENAME
27 #define OBD_FILTER_DEVICENAME "obdfilter"
30 /* In-memory access to client data from OST struct */
31 struct filter_export_data {
32 struct list_head fed_open_head; /* files to close on disconnect */
33 spinlock_t fed_lock; /* protects fed_open_head */
36 /* file data for open files on OST */
37 struct filter_file_data {
38 struct list_head ffd_export_list; /* export open list - fed_lock */
39 struct file *ffd_file; /* file handle */
40 __u64 ffd_servercookie; /* cookie for lustre handle */
43 struct filter_dentry_data {
44 atomic_t fdd_open_count;
48 #define FILTER_FLAG_DESTROY 0x0001 /* destroy dentry on last file close */