salvage: Zero root/readme vnodes before writing
[openafs.git] / src / vol / daemon_com_inline.h
1 /*
2  * Copyright 2010, Sine Nomine Associates.
3  * All Rights Reserved.
4  *
5  * This software has been released under the terms of the IBM Public
6  * License.  For details, see the LICENSE file in the top-level source
7  * directory or online at http://www.openafs.org/dl/license10.html
8  */
9
10 #ifndef AFS_VOL_DAEMON_COM_INLINE_H
11 #define AFS_VOL_DAEMON_COM_INLINE_H
12
13 #include "daemon_com.h"
14
15 #define SYNC_ENUMCASE(en) \
16     case en: \
17         return #en; \
18         break
19
20 static_inline char *
21 SYNC_res2string(afs_int32 response)
22 {
23     switch (response) {
24         SYNC_ENUMCASE(SYNC_OK);
25         SYNC_ENUMCASE(SYNC_DENIED);
26         SYNC_ENUMCASE(SYNC_COM_ERROR);
27         SYNC_ENUMCASE(SYNC_BAD_COMMAND);
28         SYNC_ENUMCASE(SYNC_FAILED);
29     default:
30         return "**UNKNOWN**";
31     }
32 }
33
34 #undef SYNC_ENUMCASE
35
36 #endif /* AFS_VOL_DAEMON_COM_INLINE_H */