108e0e7c8SDavid Howells /* AFS File Service definitions 208e0e7c8SDavid Howells * 308e0e7c8SDavid Howells * Copyright (C) 2007 Red Hat, Inc. All Rights Reserved. 408e0e7c8SDavid Howells * Written by David Howells (dhowells@redhat.com) 508e0e7c8SDavid Howells * 608e0e7c8SDavid Howells * This program is free software; you can redistribute it and/or 708e0e7c8SDavid Howells * modify it under the terms of the GNU General Public License 808e0e7c8SDavid Howells * as published by the Free Software Foundation; either version 908e0e7c8SDavid Howells * 2 of the License, or (at your option) any later version. 1008e0e7c8SDavid Howells */ 1108e0e7c8SDavid Howells 1208e0e7c8SDavid Howells #ifndef AFS_FS_H 1308e0e7c8SDavid Howells #define AFS_FS_H 1408e0e7c8SDavid Howells 1508e0e7c8SDavid Howells #define AFS_FS_PORT 7000 /* AFS file server port */ 1608e0e7c8SDavid Howells #define FS_SERVICE 1 /* AFS File Service ID */ 1708e0e7c8SDavid Howells 1808e0e7c8SDavid Howells enum AFS_FS_Operations { 1908e0e7c8SDavid Howells FSFETCHDATA = 130, /* AFS Fetch file data */ 20260a9803SDavid Howells FSFETCHSTATUS = 132, /* AFS Fetch file status */ 2131143d5dSDavid Howells FSSTOREDATA = 133, /* AFS Store file data */ 2231143d5dSDavid Howells FSSTORESTATUS = 135, /* AFS Store file status */ 23260a9803SDavid Howells FSREMOVEFILE = 136, /* AFS Remove a file */ 24260a9803SDavid Howells FSCREATEFILE = 137, /* AFS Create a file */ 25260a9803SDavid Howells FSRENAME = 138, /* AFS Rename or move a file or directory */ 26260a9803SDavid Howells FSSYMLINK = 139, /* AFS Create a symbolic link */ 27260a9803SDavid Howells FSLINK = 140, /* AFS Create a hard link */ 28260a9803SDavid Howells FSMAKEDIR = 141, /* AFS Create a directory */ 29260a9803SDavid Howells FSREMOVEDIR = 142, /* AFS Remove a directory */ 3008e0e7c8SDavid Howells FSGIVEUPCALLBACKS = 147, /* AFS Discard callback promises */ 3145222b9eSDavid Howells FSGETVOLUMEINFO = 148, /* AFS Get information about a volume */ 3245222b9eSDavid Howells FSGETVOLUMESTATUS = 149, /* AFS Get volume status information */ 3308e0e7c8SDavid Howells FSGETROOTVOLUME = 151, /* AFS Get root volume name */ 34e8d6c554SDavid Howells FSSETLOCK = 156, /* AFS Request a file lock */ 35e8d6c554SDavid Howells FSEXTENDLOCK = 157, /* AFS Extend a file lock */ 36e8d6c554SDavid Howells FSRELEASELOCK = 158, /* AFS Release a file lock */ 37260a9803SDavid Howells FSLOOKUP = 161, /* AFS lookup file in directory */ 38b9b1f8d5SDavid Howells FSFETCHDATA64 = 65537, /* AFS Fetch file data */ 39b9b1f8d5SDavid Howells FSSTOREDATA64 = 65538, /* AFS Store file data */ 40c435ee34SDavid Howells FSGIVEUPALLCALLBACKS = 65539, /* AFS Give up all outstanding callbacks on a server */ 41*d2ddc776SDavid Howells FSGETCAPABILITIES = 65540, /* Probe and get the capabilities of a fileserver */ 4208e0e7c8SDavid Howells }; 4308e0e7c8SDavid Howells 4408e0e7c8SDavid Howells enum AFS_FS_Errors { 4591a90380SDavid Howells VRESTARTING = -100, /* Server is restarting */ 4608e0e7c8SDavid Howells VSALVAGE = 101, /* volume needs salvaging */ 4708e0e7c8SDavid Howells VNOVNODE = 102, /* no such file/dir (vnode) */ 4808e0e7c8SDavid Howells VNOVOL = 103, /* no such volume or volume unavailable */ 4908e0e7c8SDavid Howells VVOLEXISTS = 104, /* volume name already exists */ 5008e0e7c8SDavid Howells VNOSERVICE = 105, /* volume not currently in service */ 5108e0e7c8SDavid Howells VOFFLINE = 106, /* volume is currently offline (more info available [VVL-spec]) */ 5208e0e7c8SDavid Howells VONLINE = 107, /* volume is already online */ 5308e0e7c8SDavid Howells VDISKFULL = 108, /* disk partition is full */ 5408e0e7c8SDavid Howells VOVERQUOTA = 109, /* volume's maximum quota exceeded */ 5508e0e7c8SDavid Howells VBUSY = 110, /* volume is temporarily unavailable */ 5608e0e7c8SDavid Howells VMOVED = 111, /* volume moved to new server - ask this FS where */ 5791a90380SDavid Howells VIO = 112, /* I/O error in volume */ 5891a90380SDavid Howells VSALVAGING = 113, /* Volume is being salvaged */ 5991a90380SDavid Howells VRESTRICTED = 120, /* Volume is restricted from using */ 6008e0e7c8SDavid Howells }; 6108e0e7c8SDavid Howells 6208e0e7c8SDavid Howells #endif /* AFS_FS_H */ 63