18c2ecf20Sopenharmony_ci/* SPDX-License-Identifier: GPL-2.0-or-later */ 28c2ecf20Sopenharmony_ci/* AFS File Service definitions 38c2ecf20Sopenharmony_ci * 48c2ecf20Sopenharmony_ci * Copyright (C) 2007 Red Hat, Inc. All Rights Reserved. 58c2ecf20Sopenharmony_ci * Written by David Howells (dhowells@redhat.com) 68c2ecf20Sopenharmony_ci */ 78c2ecf20Sopenharmony_ci 88c2ecf20Sopenharmony_ci#ifndef AFS_FS_H 98c2ecf20Sopenharmony_ci#define AFS_FS_H 108c2ecf20Sopenharmony_ci 118c2ecf20Sopenharmony_ci#define AFS_FS_PORT 7000 /* AFS file server port */ 128c2ecf20Sopenharmony_ci#define FS_SERVICE 1 /* AFS File Service ID */ 138c2ecf20Sopenharmony_ci 148c2ecf20Sopenharmony_cienum AFS_FS_Operations { 158c2ecf20Sopenharmony_ci FSFETCHDATA = 130, /* AFS Fetch file data */ 168c2ecf20Sopenharmony_ci FSFETCHACL = 131, /* AFS Fetch file ACL */ 178c2ecf20Sopenharmony_ci FSFETCHSTATUS = 132, /* AFS Fetch file status */ 188c2ecf20Sopenharmony_ci FSSTOREDATA = 133, /* AFS Store file data */ 198c2ecf20Sopenharmony_ci FSSTOREACL = 134, /* AFS Store file ACL */ 208c2ecf20Sopenharmony_ci FSSTORESTATUS = 135, /* AFS Store file status */ 218c2ecf20Sopenharmony_ci FSREMOVEFILE = 136, /* AFS Remove a file */ 228c2ecf20Sopenharmony_ci FSCREATEFILE = 137, /* AFS Create a file */ 238c2ecf20Sopenharmony_ci FSRENAME = 138, /* AFS Rename or move a file or directory */ 248c2ecf20Sopenharmony_ci FSSYMLINK = 139, /* AFS Create a symbolic link */ 258c2ecf20Sopenharmony_ci FSLINK = 140, /* AFS Create a hard link */ 268c2ecf20Sopenharmony_ci FSMAKEDIR = 141, /* AFS Create a directory */ 278c2ecf20Sopenharmony_ci FSREMOVEDIR = 142, /* AFS Remove a directory */ 288c2ecf20Sopenharmony_ci FSGIVEUPCALLBACKS = 147, /* AFS Discard callback promises */ 298c2ecf20Sopenharmony_ci FSGETVOLUMEINFO = 148, /* AFS Get information about a volume */ 308c2ecf20Sopenharmony_ci FSGETVOLUMESTATUS = 149, /* AFS Get volume status information */ 318c2ecf20Sopenharmony_ci FSGETROOTVOLUME = 151, /* AFS Get root volume name */ 328c2ecf20Sopenharmony_ci FSBULKSTATUS = 155, /* AFS Fetch multiple file statuses */ 338c2ecf20Sopenharmony_ci FSSETLOCK = 156, /* AFS Request a file lock */ 348c2ecf20Sopenharmony_ci FSEXTENDLOCK = 157, /* AFS Extend a file lock */ 358c2ecf20Sopenharmony_ci FSRELEASELOCK = 158, /* AFS Release a file lock */ 368c2ecf20Sopenharmony_ci FSLOOKUP = 161, /* AFS lookup file in directory */ 378c2ecf20Sopenharmony_ci FSINLINEBULKSTATUS = 65536, /* AFS Fetch multiple file statuses with inline errors */ 388c2ecf20Sopenharmony_ci FSFETCHDATA64 = 65537, /* AFS Fetch file data */ 398c2ecf20Sopenharmony_ci FSSTOREDATA64 = 65538, /* AFS Store file data */ 408c2ecf20Sopenharmony_ci FSGIVEUPALLCALLBACKS = 65539, /* AFS Give up all outstanding callbacks on a server */ 418c2ecf20Sopenharmony_ci FSGETCAPABILITIES = 65540, /* Probe and get the capabilities of a fileserver */ 428c2ecf20Sopenharmony_ci}; 438c2ecf20Sopenharmony_ci 448c2ecf20Sopenharmony_cienum AFS_FS_Errors { 458c2ecf20Sopenharmony_ci VRESTARTING = -100, /* Server is restarting */ 468c2ecf20Sopenharmony_ci VSALVAGE = 101, /* volume needs salvaging */ 478c2ecf20Sopenharmony_ci VNOVNODE = 102, /* no such file/dir (vnode) */ 488c2ecf20Sopenharmony_ci VNOVOL = 103, /* no such volume or volume unavailable */ 498c2ecf20Sopenharmony_ci VVOLEXISTS = 104, /* volume name already exists */ 508c2ecf20Sopenharmony_ci VNOSERVICE = 105, /* volume not currently in service */ 518c2ecf20Sopenharmony_ci VOFFLINE = 106, /* volume is currently offline (more info available [VVL-spec]) */ 528c2ecf20Sopenharmony_ci VONLINE = 107, /* volume is already online */ 538c2ecf20Sopenharmony_ci VDISKFULL = 108, /* disk partition is full */ 548c2ecf20Sopenharmony_ci VOVERQUOTA = 109, /* volume's maximum quota exceeded */ 558c2ecf20Sopenharmony_ci VBUSY = 110, /* volume is temporarily unavailable */ 568c2ecf20Sopenharmony_ci VMOVED = 111, /* volume moved to new server - ask this FS where */ 578c2ecf20Sopenharmony_ci VIO = 112, /* I/O error in volume */ 588c2ecf20Sopenharmony_ci VSALVAGING = 113, /* Volume is being salvaged */ 598c2ecf20Sopenharmony_ci VRESTRICTED = 120, /* Volume is restricted from using */ 608c2ecf20Sopenharmony_ci}; 618c2ecf20Sopenharmony_ci 628c2ecf20Sopenharmony_ci#endif /* AFS_FS_H */ 63