~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~

TOMOYO Linux Cross Reference
Linux/fs/ceph/strings.c

Version: ~ [ linux-5.9.1 ] ~ [ linux-5.8.16 ] ~ [ linux-5.7.19 ] ~ [ linux-5.6.19 ] ~ [ linux-5.5.19 ] ~ [ linux-5.4.72 ] ~ [ linux-5.3.18 ] ~ [ linux-5.2.21 ] ~ [ linux-5.1.21 ] ~ [ linux-5.0.21 ] ~ [ linux-4.20.17 ] ~ [ linux-4.19.152 ] ~ [ linux-4.18.20 ] ~ [ linux-4.17.19 ] ~ [ linux-4.16.18 ] ~ [ linux-4.15.18 ] ~ [ linux-4.14.202 ] ~ [ linux-4.13.16 ] ~ [ linux-4.12.14 ] ~ [ linux-4.11.12 ] ~ [ linux-4.10.17 ] ~ [ linux-4.9.240 ] ~ [ linux-4.8.17 ] ~ [ linux-4.7.10 ] ~ [ linux-4.6.7 ] ~ [ linux-4.5.7 ] ~ [ linux-4.4.240 ] ~ [ linux-4.3.6 ] ~ [ linux-4.2.8 ] ~ [ linux-4.1.52 ] ~ [ linux-4.0.9 ] ~ [ linux-3.19.8 ] ~ [ linux-3.18.140 ] ~ [ linux-3.17.8 ] ~ [ linux-3.16.85 ] ~ [ linux-3.15.10 ] ~ [ linux-3.14.79 ] ~ [ linux-3.13.11 ] ~ [ linux-3.12.74 ] ~ [ linux-3.11.10 ] ~ [ linux-3.10.108 ] ~ [ linux-2.6.32.71 ] ~ [ linux-2.6.0 ] ~ [ linux-2.4.37.11 ] ~ [ unix-v6-master ] ~ [ ccs-tools-1.8.5 ] ~ [ policy-sample ] ~
Architecture: ~ [ i386 ] ~ [ alpha ] ~ [ m68k ] ~ [ mips ] ~ [ ppc ] ~ [ sparc ] ~ [ sparc64 ] ~

  1 /*
  2  * Ceph fs string constants
  3  */
  4 #include <linux/module.h>
  5 #include <linux/ceph/types.h>
  6 
  7 
  8 const char *ceph_mds_state_name(int s)
  9 {
 10         switch (s) {
 11                 /* down and out */
 12         case CEPH_MDS_STATE_DNE:        return "down:dne";
 13         case CEPH_MDS_STATE_STOPPED:    return "down:stopped";
 14                 /* up and out */
 15         case CEPH_MDS_STATE_BOOT:       return "up:boot";
 16         case CEPH_MDS_STATE_STANDBY:    return "up:standby";
 17         case CEPH_MDS_STATE_STANDBY_REPLAY:    return "up:standby-replay";
 18         case CEPH_MDS_STATE_REPLAYONCE: return "up:oneshot-replay";
 19         case CEPH_MDS_STATE_CREATING:   return "up:creating";
 20         case CEPH_MDS_STATE_STARTING:   return "up:starting";
 21                 /* up and in */
 22         case CEPH_MDS_STATE_REPLAY:     return "up:replay";
 23         case CEPH_MDS_STATE_RESOLVE:    return "up:resolve";
 24         case CEPH_MDS_STATE_RECONNECT:  return "up:reconnect";
 25         case CEPH_MDS_STATE_REJOIN:     return "up:rejoin";
 26         case CEPH_MDS_STATE_CLIENTREPLAY: return "up:clientreplay";
 27         case CEPH_MDS_STATE_ACTIVE:     return "up:active";
 28         case CEPH_MDS_STATE_STOPPING:   return "up:stopping";
 29         }
 30         return "???";
 31 }
 32 
 33 const char *ceph_session_op_name(int op)
 34 {
 35         switch (op) {
 36         case CEPH_SESSION_REQUEST_OPEN: return "request_open";
 37         case CEPH_SESSION_OPEN: return "open";
 38         case CEPH_SESSION_REQUEST_CLOSE: return "request_close";
 39         case CEPH_SESSION_CLOSE: return "close";
 40         case CEPH_SESSION_REQUEST_RENEWCAPS: return "request_renewcaps";
 41         case CEPH_SESSION_RENEWCAPS: return "renewcaps";
 42         case CEPH_SESSION_STALE: return "stale";
 43         case CEPH_SESSION_RECALL_STATE: return "recall_state";
 44         }
 45         return "???";
 46 }
 47 
 48 const char *ceph_mds_op_name(int op)
 49 {
 50         switch (op) {
 51         case CEPH_MDS_OP_LOOKUP:  return "lookup";
 52         case CEPH_MDS_OP_LOOKUPHASH:  return "lookuphash";
 53         case CEPH_MDS_OP_LOOKUPPARENT:  return "lookupparent";
 54         case CEPH_MDS_OP_LOOKUPINO:  return "lookupino";
 55         case CEPH_MDS_OP_GETATTR:  return "getattr";
 56         case CEPH_MDS_OP_SETXATTR: return "setxattr";
 57         case CEPH_MDS_OP_SETATTR: return "setattr";
 58         case CEPH_MDS_OP_RMXATTR: return "rmxattr";
 59         case CEPH_MDS_OP_SETLAYOUT: return "setlayou";
 60         case CEPH_MDS_OP_SETDIRLAYOUT: return "setdirlayout";
 61         case CEPH_MDS_OP_READDIR: return "readdir";
 62         case CEPH_MDS_OP_MKNOD: return "mknod";
 63         case CEPH_MDS_OP_LINK: return "link";
 64         case CEPH_MDS_OP_UNLINK: return "unlink";
 65         case CEPH_MDS_OP_RENAME: return "rename";
 66         case CEPH_MDS_OP_MKDIR: return "mkdir";
 67         case CEPH_MDS_OP_RMDIR: return "rmdir";
 68         case CEPH_MDS_OP_SYMLINK: return "symlink";
 69         case CEPH_MDS_OP_CREATE: return "create";
 70         case CEPH_MDS_OP_OPEN: return "open";
 71         case CEPH_MDS_OP_LOOKUPSNAP: return "lookupsnap";
 72         case CEPH_MDS_OP_LSSNAP: return "lssnap";
 73         case CEPH_MDS_OP_MKSNAP: return "mksnap";
 74         case CEPH_MDS_OP_RMSNAP: return "rmsnap";
 75         case CEPH_MDS_OP_SETFILELOCK: return "setfilelock";
 76         case CEPH_MDS_OP_GETFILELOCK: return "getfilelock";
 77         }
 78         return "???";
 79 }
 80 
 81 const char *ceph_cap_op_name(int op)
 82 {
 83         switch (op) {
 84         case CEPH_CAP_OP_GRANT: return "grant";
 85         case CEPH_CAP_OP_REVOKE: return "revoke";
 86         case CEPH_CAP_OP_TRUNC: return "trunc";
 87         case CEPH_CAP_OP_EXPORT: return "export";
 88         case CEPH_CAP_OP_IMPORT: return "import";
 89         case CEPH_CAP_OP_UPDATE: return "update";
 90         case CEPH_CAP_OP_DROP: return "drop";
 91         case CEPH_CAP_OP_FLUSH: return "flush";
 92         case CEPH_CAP_OP_FLUSH_ACK: return "flush_ack";
 93         case CEPH_CAP_OP_FLUSHSNAP: return "flushsnap";
 94         case CEPH_CAP_OP_FLUSHSNAP_ACK: return "flushsnap_ack";
 95         case CEPH_CAP_OP_RELEASE: return "release";
 96         case CEPH_CAP_OP_RENEW: return "renew";
 97         }
 98         return "???";
 99 }
100 
101 const char *ceph_lease_op_name(int o)
102 {
103         switch (o) {
104         case CEPH_MDS_LEASE_REVOKE: return "revoke";
105         case CEPH_MDS_LEASE_RELEASE: return "release";
106         case CEPH_MDS_LEASE_RENEW: return "renew";
107         case CEPH_MDS_LEASE_REVOKE_ACK: return "revoke_ack";
108         }
109         return "???";
110 }
111 
112 const char *ceph_snap_op_name(int o)
113 {
114         switch (o) {
115         case CEPH_SNAP_OP_UPDATE: return "update";
116         case CEPH_SNAP_OP_CREATE: return "create";
117         case CEPH_SNAP_OP_DESTROY: return "destroy";
118         case CEPH_SNAP_OP_SPLIT: return "split";
119         }
120         return "???";
121 }
122 

~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~

kernel.org | git.kernel.org | LWN.net | Project Home | Wiki (Japanese) | Wiki (English) | SVN repository | Mail admin

Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.

osdn.jp