internal.h (79ddbfa500b37a94fa7501e65ebdd5c0e4c7592d) | internal.h (6c6c1d63c243025956f061e67fff3a615aa0f6be) |
---|---|
1/* internal AFS stuff 2 * 3 * Copyright (C) 2002, 2007 Red Hat, Inc. All Rights Reserved. 4 * Written by David Howells (dhowells@redhat.com) 5 * 6 * This program is free software; you can redistribute it and/or 7 * modify it under the terms of the GNU General Public License 8 * as published by the Free Software Foundation; either version --- 22 unchanged lines hidden (view full) --- 31#include "afs.h" 32#include "afs_vl.h" 33 34#define AFS_CELL_MAX_ADDRS 15 35 36struct pagevec; 37struct afs_call; 38 | 1/* internal AFS stuff 2 * 3 * Copyright (C) 2002, 2007 Red Hat, Inc. All Rights Reserved. 4 * Written by David Howells (dhowells@redhat.com) 5 * 6 * This program is free software; you can redistribute it and/or 7 * modify it under the terms of the GNU General Public License 8 * as published by the Free Software Foundation; either version --- 22 unchanged lines hidden (view full) --- 31#include "afs.h" 32#include "afs_vl.h" 33 34#define AFS_CELL_MAX_ADDRS 15 35 36struct pagevec; 37struct afs_call; 38 |
39/* 40 * Partial file-locking emulation mode. (The problem being that AFS3 only 41 * allows whole-file locks and no upgrading/downgrading). 42 */ 43enum afs_flock_mode { 44 afs_flock_mode_unset, 45 afs_flock_mode_local, /* Local locking only */ 46 afs_flock_mode_openafs, /* Don't get server lock for a partial lock */ 47 afs_flock_mode_strict, /* Always get a server lock for a partial lock */ 48 afs_flock_mode_write, /* Get an exclusive server lock for a partial lock */ 49}; 50 |
|
39struct afs_fs_context { 40 bool force; /* T to force cell type */ 41 bool autocell; /* T if set auto mount operation */ 42 bool dyn_root; /* T if dynamic root */ 43 bool no_cell; /* T if the source is "none" (for dynroot) */ | 51struct afs_fs_context { 52 bool force; /* T to force cell type */ 53 bool autocell; /* T if set auto mount operation */ 54 bool dyn_root; /* T if dynamic root */ 55 bool no_cell; /* T if the source is "none" (for dynroot) */ |
56 enum afs_flock_mode flock_mode; /* Partial file-locking emulation mode */ |
|
44 afs_voltype_t type; /* type of volume requested */ 45 unsigned int volnamesz; /* size of volume name */ 46 const char *volname; /* name of volume to mount */ 47 struct afs_net *net; /* the AFS net namespace stuff */ 48 struct afs_cell *cell; /* cell in which to find volume */ 49 struct afs_volume *volume; /* volume record */ 50 struct key *key; /* key to use for secure mounting */ 51}; --- 164 unchanged lines hidden (view full) --- 216/* 217 * AFS superblock private data 218 * - there's one superblock per volume 219 */ 220struct afs_super_info { 221 struct net *net_ns; /* Network namespace */ 222 struct afs_cell *cell; /* The cell in which the volume resides */ 223 struct afs_volume *volume; /* volume record */ | 57 afs_voltype_t type; /* type of volume requested */ 58 unsigned int volnamesz; /* size of volume name */ 59 const char *volname; /* name of volume to mount */ 60 struct afs_net *net; /* the AFS net namespace stuff */ 61 struct afs_cell *cell; /* cell in which to find volume */ 62 struct afs_volume *volume; /* volume record */ 63 struct key *key; /* key to use for secure mounting */ 64}; --- 164 unchanged lines hidden (view full) --- 229/* 230 * AFS superblock private data 231 * - there's one superblock per volume 232 */ 233struct afs_super_info { 234 struct net *net_ns; /* Network namespace */ 235 struct afs_cell *cell; /* The cell in which the volume resides */ 236 struct afs_volume *volume; /* volume record */ |
237 enum afs_flock_mode flock_mode:8; /* File locking emulation mode */ |
|
224 bool dyn_root; /* True if dynamic root */ 225}; 226 227static inline struct afs_super_info *AFS_FS_S(struct super_block *sb) 228{ 229 return sb->s_fs_info; 230} 231 --- 1296 unchanged lines hidden --- | 238 bool dyn_root; /* True if dynamic root */ 239}; 240 241static inline struct afs_super_info *AFS_FS_S(struct super_block *sb) 242{ 243 return sb->s_fs_info; 244} 245 --- 1296 unchanged lines hidden --- |