Lines Matching +full:int +full:- +full:fwd +full:- +full:mask
1 /* SPDX-License-Identifier: GPL-2.0 */
3 * ceph_fs.h - Ceph constants and data types to share between kernel and
6 * Most types in this file are defined as little-endian, and are
20 * subprotocol versions. when specific messages types or high-level
23 * client-facing protocol.
41 /* file -> object mapping */
49 /* pg -> disk layout */
50 __le32 fl_object_stripe_unit; /* UNUSED. for per-object parity, if any */
52 /* object -> pg layout */
53 __le32 fl_unused; /* unused; used to be preferred primary for pg (-1 for none) */
59 * ceph_file_layout - describe data layout for a file/inode
62 /* file -> object mapping */
70 extern int ceph_file_layout_is_valid(const struct ceph_file_layout *layout);
105 #define CEPH_AUTH_UID_DEFAULT ((__u64) -1)
107 const char *ceph_auth_proto_name(int proto);
108 const char *ceph_con_mode_name(int mode);
122 /* client <-> monitor */
134 /* client <-> mds */
167 /* watch-notify operations */
234 #define CEPH_FS_CLUSTER_ID_NONE -1
243 * > 0 -> in
244 * <= 0 -> out
247 #define CEPH_MDS_STATE_STOPPED -1 /* down, once existed, but no subtrees.
249 #define CEPH_MDS_STATE_BOOT -4 /* up, boot announcement. */
250 #define CEPH_MDS_STATE_STANDBY -5 /* up, idle. waiting for assignment. */
251 #define CEPH_MDS_STATE_CREATING -6 /* up, creating MDS instance. */
252 #define CEPH_MDS_STATE_STARTING -7 /* up, starting previously stopped mds */
253 #define CEPH_MDS_STATE_STANDBY_REPLAY -8 /* up, tailing active node's journal */
254 #define CEPH_MDS_STATE_REPLAYONCE -9 /* up, replaying an active node's journal */
265 extern const char *ceph_mds_state_name(int s);
270 * - these are bitmasks.. we can compose them
271 * - they also define the lock ordering by the MDS
272 * - a few of these are internal to the mds
307 extern const char *ceph_session_op_name(int op);
319 * & 0x001000 -> write op
320 * & 0x010000 -> follow symlink (e.g. stat(), not lstat()).
321 & & 0x100000 -> use weird ino/path trace
360 extern const char *ceph_mds_op_name(int op);
410 __le32 mask; /* CEPH_CAP_* */ member
419 __le32 mask; /* CEPH_SETATTR_* */ member
442 __le32 mask; /* CEPH_CAP_* */ member
462 __le32 mask; /* CEPH_CAP_* */ member
478 __le32 mask; /* CEPH_SETATTR_* */ member
491 __u8 num_retry, num_fwd; /* count retry, fwd attempts */
507 __u8 num_retry, num_fwd; /* count retry, fwd attempts */
521 __u8 num_retry, num_fwd; /* legacy count retry and fwd attempts */
530 __le32 ext_num_fwd; /* new count fwd attempts */
598 __le16 mask; /* lease type(s) */ member
640 #define CEPH_FILE_MODE_MASK ((1 << CEPH_FILE_MODE_BITS) - 1)
642 int ceph_flags_to_mode(int flags);
644 #define CEPH_INLINE_NONE ((__u64)-1)
662 /* per-lock shift */
745 int ceph_caps_for_mode(int mode);
748 CEPH_CAP_OP_GRANT, /* mds->client grant */
749 CEPH_CAP_OP_REVOKE, /* mds->client revoke */
750 CEPH_CAP_OP_TRUNC, /* mds->client trunc notify */
753 CEPH_CAP_OP_UPDATE, /* client->mds update */
754 CEPH_CAP_OP_DROP, /* client->mds drop cap bits */
755 CEPH_CAP_OP_FLUSH, /* client->mds cap writeback */
756 CEPH_CAP_OP_FLUSH_ACK, /* mds->client flushed */
757 CEPH_CAP_OP_FLUSHSNAP, /* client->mds flush snapped metadata */
758 CEPH_CAP_OP_FLUSHSNAP_ACK, /* mds->client flushed snapped metadata */
759 CEPH_CAP_OP_RELEASE, /* client->mds release (clean) cap */
760 CEPH_CAP_OP_RENEW, /* client->mds renewal request */
763 extern const char *ceph_cap_op_name(int op);
793 /* a union of non-export and export bodies. */
820 #define CEPH_MDS_LEASE_REVOKE 1 /* mds -> client */
821 #define CEPH_MDS_LEASE_RELEASE 2 /* client -> mds */
822 #define CEPH_MDS_LEASE_RENEW 3 /* client <-> mds */
823 #define CEPH_MDS_LEASE_REVOKE_ACK 4 /* client -> mds */
825 extern const char *ceph_lease_op_name(int o);
830 __le16 mask; /* which lease */ member
875 extern const char *ceph_snap_op_name(int o);