diff options
author | David Howells <dhowells@redhat.com> | 2007-04-26 18:58:17 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2007-04-26 18:58:17 -0400 |
commit | b908fe6b2d1294d93b0d0badf6bf4f9a2cd7d729 (patch) | |
tree | a0ccc4a21752f69991f762faea7c1b40510dbb4c /fs/afs/afs_cm.h | |
parent | 0795e7c031c4bda46fbdde678adf29de19bef7f4 (diff) |
[AFS]: Add support for the CB.GetCapabilities operation.
Add support for the CB.GetCapabilities operation with which the fileserver can
ask the client for the following information:
(1) The list of network interfaces it has available as IPv4 address + netmask
plus the MTUs.
(2) The client's UUID.
(3) The extended capabilities of the client, for which the only current one
is unified error mapping (abort code interpretation).
To support this, the patch adds the following routines to AFS:
(1) A function to iterate through all the network interfaces using RTNETLINK
to extract IPv4 addresses and MTUs.
(2) A function to iterate through all the network interfaces using RTNETLINK
to pull out the MAC address of the lowest index interface to use in UUID
construction.
Signed-off-by: David Howells <dhowells@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'fs/afs/afs_cm.h')
-rw-r--r-- | fs/afs/afs_cm.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/fs/afs/afs_cm.h b/fs/afs/afs_cm.h index 7c8e3d43c8e5..d4bd201cc31e 100644 --- a/fs/afs/afs_cm.h +++ b/fs/afs/afs_cm.h | |||
@@ -23,6 +23,9 @@ enum AFS_CM_Operations { | |||
23 | CBGetCE = 208, /* get cache file description */ | 23 | CBGetCE = 208, /* get cache file description */ |
24 | CBGetXStatsVersion = 209, /* get version of extended statistics */ | 24 | CBGetXStatsVersion = 209, /* get version of extended statistics */ |
25 | CBGetXStats = 210, /* get contents of extended statistics data */ | 25 | CBGetXStats = 210, /* get contents of extended statistics data */ |
26 | CBGetCapabilities = 65538, /* get client capabilities */ | ||
26 | }; | 27 | }; |
27 | 28 | ||
29 | #define AFS_CAP_ERROR_TRANSLATION 0x1 | ||
30 | |||
28 | #endif /* AFS_FS_H */ | 31 | #endif /* AFS_FS_H */ |