^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 1) /* SPDX-License-Identifier: GPL-2.0-or-later */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 2) /* AFS Cache Manager definitions
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 3) *
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 4) * Copyright (C) 2007 Red Hat, Inc. All Rights Reserved.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 5) * Written by David Howells (dhowells@redhat.com)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 6) */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 7)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 8) #ifndef AFS_CM_H
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 9) #define AFS_CM_H
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 10)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 11) #define AFS_CM_PORT 7001 /* AFS file server port */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 12) #define CM_SERVICE 1 /* AFS File Service ID */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 13)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 14) enum AFS_CM_Operations {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 15) CBCallBack = 204, /* break callback promises */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 16) CBInitCallBackState = 205, /* initialise callback state */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 17) CBProbe = 206, /* probe client */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 18) CBGetLock = 207, /* get contents of CM lock table */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 19) CBGetCE = 208, /* get cache file description */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 20) CBGetXStatsVersion = 209, /* get version of extended statistics */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 21) CBGetXStats = 210, /* get contents of extended statistics data */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 22) CBInitCallBackState3 = 213, /* initialise callback state, version 3 */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 23) CBProbeUuid = 214, /* check the client hasn't rebooted */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 24) CBTellMeAboutYourself = 65538, /* get client capabilities */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 25) };
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 26)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 27) #define AFS_CAP_ERROR_TRANSLATION 0x1
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 28)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 29) #endif /* AFS_FS_H */