1*2874c5fdSThomas Gleixner /* SPDX-License-Identifier: GPL-2.0-or-later */ 208e0e7c8SDavid Howells /* AFS File Service definitions 308e0e7c8SDavid Howells * 408e0e7c8SDavid Howells * Copyright (C) 2007 Red Hat, Inc. All Rights Reserved. 508e0e7c8SDavid Howells * Written by David Howells (dhowells@redhat.com) 608e0e7c8SDavid Howells */ 708e0e7c8SDavid Howells 808e0e7c8SDavid Howells #ifndef AFS_FS_H 908e0e7c8SDavid Howells #define AFS_FS_H 1008e0e7c8SDavid Howells 1108e0e7c8SDavid Howells #define AFS_FS_PORT 7000 /* AFS file server port */ 1208e0e7c8SDavid Howells #define FS_SERVICE 1 /* AFS File Service ID */ 1308e0e7c8SDavid Howells 1408e0e7c8SDavid Howells enum AFS_FS_Operations { 1508e0e7c8SDavid Howells FSFETCHDATA = 130, /* AFS Fetch file data */ 16260f082bSDavid Howells FSFETCHACL = 131, /* AFS Fetch file ACL */ 17260a9803SDavid Howells FSFETCHSTATUS = 132, /* AFS Fetch file status */ 1831143d5dSDavid Howells FSSTOREDATA = 133, /* AFS Store file data */ 19b10494afSJoe Gorse FSSTOREACL = 134, /* AFS Store file ACL */ 2031143d5dSDavid Howells FSSTORESTATUS = 135, /* AFS Store file status */ 21260a9803SDavid Howells FSREMOVEFILE = 136, /* AFS Remove a file */ 22260a9803SDavid Howells FSCREATEFILE = 137, /* AFS Create a file */ 23260a9803SDavid Howells FSRENAME = 138, /* AFS Rename or move a file or directory */ 24260a9803SDavid Howells FSSYMLINK = 139, /* AFS Create a symbolic link */ 25260a9803SDavid Howells FSLINK = 140, /* AFS Create a hard link */ 26260a9803SDavid Howells FSMAKEDIR = 141, /* AFS Create a directory */ 27260a9803SDavid Howells FSREMOVEDIR = 142, /* AFS Remove a directory */ 2808e0e7c8SDavid Howells FSGIVEUPCALLBACKS = 147, /* AFS Discard callback promises */ 2945222b9eSDavid Howells FSGETVOLUMEINFO = 148, /* AFS Get information about a volume */ 3045222b9eSDavid Howells FSGETVOLUMESTATUS = 149, /* AFS Get volume status information */ 3108e0e7c8SDavid Howells FSGETROOTVOLUME = 151, /* AFS Get root volume name */ 325cf9dd55SDavid Howells FSBULKSTATUS = 155, /* AFS Fetch multiple file statuses */ 33e8d6c554SDavid Howells FSSETLOCK = 156, /* AFS Request a file lock */ 34e8d6c554SDavid Howells FSEXTENDLOCK = 157, /* AFS Extend a file lock */ 35e8d6c554SDavid Howells FSRELEASELOCK = 158, /* AFS Release a file lock */ 36260a9803SDavid Howells FSLOOKUP = 161, /* AFS lookup file in directory */ 375cf9dd55SDavid Howells FSINLINEBULKSTATUS = 65536, /* AFS Fetch multiple file statuses with inline errors */ 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 */ 41d2ddc776SDavid 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