/* AFS File Service definitions1*2* Copyright (C) 2007 Red Hat, Inc. All Rights Reserved.3* Written by David Howells ([email protected])4*5* This program is free software; you can redistribute it and/or6* modify it under the terms of the GNU General Public License7* as published by the Free Software Foundation; either version8* 2 of the License, or (at your option) any later version.9*/1011#ifndef AFS_FS_H12#define AFS_FS_H1314#define AFS_FS_PORT 7000 /* AFS file server port */15#define FS_SERVICE 1 /* AFS File Service ID */1617enum AFS_FS_Operations {18FSFETCHDATA = 130, /* AFS Fetch file data */19FSFETCHSTATUS = 132, /* AFS Fetch file status */20FSSTOREDATA = 133, /* AFS Store file data */21FSSTORESTATUS = 135, /* AFS Store file status */22FSREMOVEFILE = 136, /* AFS Remove a file */23FSCREATEFILE = 137, /* AFS Create a file */24FSRENAME = 138, /* AFS Rename or move a file or directory */25FSSYMLINK = 139, /* AFS Create a symbolic link */26FSLINK = 140, /* AFS Create a hard link */27FSMAKEDIR = 141, /* AFS Create a directory */28FSREMOVEDIR = 142, /* AFS Remove a directory */29FSGIVEUPCALLBACKS = 147, /* AFS Discard callback promises */30FSGETVOLUMEINFO = 148, /* AFS Get information about a volume */31FSGETVOLUMESTATUS = 149, /* AFS Get volume status information */32FSGETROOTVOLUME = 151, /* AFS Get root volume name */33FSSETLOCK = 156, /* AFS Request a file lock */34FSEXTENDLOCK = 157, /* AFS Extend a file lock */35FSRELEASELOCK = 158, /* AFS Release a file lock */36FSLOOKUP = 161, /* AFS lookup file in directory */37FSFETCHDATA64 = 65537, /* AFS Fetch file data */38FSSTOREDATA64 = 65538, /* AFS Store file data */39};4041enum AFS_FS_Errors {42VSALVAGE = 101, /* volume needs salvaging */43VNOVNODE = 102, /* no such file/dir (vnode) */44VNOVOL = 103, /* no such volume or volume unavailable */45VVOLEXISTS = 104, /* volume name already exists */46VNOSERVICE = 105, /* volume not currently in service */47VOFFLINE = 106, /* volume is currently offline (more info available [VVL-spec]) */48VONLINE = 107, /* volume is already online */49VDISKFULL = 108, /* disk partition is full */50VOVERQUOTA = 109, /* volume's maximum quota exceeded */51VBUSY = 110, /* volume is temporarily unavailable */52VMOVED = 111, /* volume moved to new server - ask this FS where */53};5455#endif /* AFS_FS_H */565758