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 */ 20*260a9803SDavid Howells FSFETCHSTATUS = 132, /* AFS Fetch file status */ 21*260a9803SDavid Howells FSREMOVEFILE = 136, /* AFS Remove a file */ 22*260a9803SDavid Howells FSCREATEFILE = 137, /* AFS Create a file */ 23*260a9803SDavid Howells FSRENAME = 138, /* AFS Rename or move a file or directory */ 24*260a9803SDavid Howells FSSYMLINK = 139, /* AFS Create a symbolic link */ 25*260a9803SDavid Howells FSLINK = 140, /* AFS Create a hard link */ 26*260a9803SDavid Howells FSMAKEDIR = 141, /* AFS Create a directory */ 27*260a9803SDavid Howells FSREMOVEDIR = 142, /* AFS Remove a directory */ 2808e0e7c8SDavid Howells FSGIVEUPCALLBACKS = 147, /* AFS Discard callback promises */ 2908e0e7c8SDavid Howells FSGETVOLUMEINFO = 148, /* AFS Get root volume information */ 3008e0e7c8SDavid Howells FSGETROOTVOLUME = 151, /* AFS Get root volume name */ 31*260a9803SDavid Howells FSLOOKUP = 161, /* AFS lookup file in directory */ 3208e0e7c8SDavid Howells }; 3308e0e7c8SDavid Howells 3408e0e7c8SDavid Howells enum AFS_FS_Errors { 3508e0e7c8SDavid Howells VSALVAGE = 101, /* volume needs salvaging */ 3608e0e7c8SDavid Howells VNOVNODE = 102, /* no such file/dir (vnode) */ 3708e0e7c8SDavid Howells VNOVOL = 103, /* no such volume or volume unavailable */ 3808e0e7c8SDavid Howells VVOLEXISTS = 104, /* volume name already exists */ 3908e0e7c8SDavid Howells VNOSERVICE = 105, /* volume not currently in service */ 4008e0e7c8SDavid Howells VOFFLINE = 106, /* volume is currently offline (more info available [VVL-spec]) */ 4108e0e7c8SDavid Howells VONLINE = 107, /* volume is already online */ 4208e0e7c8SDavid Howells VDISKFULL = 108, /* disk partition is full */ 4308e0e7c8SDavid Howells VOVERQUOTA = 109, /* volume's maximum quota exceeded */ 4408e0e7c8SDavid Howells VBUSY = 110, /* volume is temporarily unavailable */ 4508e0e7c8SDavid Howells VMOVED = 111, /* volume moved to new server - ask this FS where */ 4608e0e7c8SDavid Howells }; 4708e0e7c8SDavid Howells 4808e0e7c8SDavid Howells #endif /* AFS_FS_H */ 49