@@ -67,6 +67,7 @@
{ OST_QUOTACTL, "ost_quotactl" },
{ OST_QUOTA_ADJUST_QUNIT, "ost_quota_adjust_qunit" },
{ OST_LADVISE, "ost_ladvise" },
+ { OST_FALLOCATE, "ost_fallocate"},
{ MDS_GETATTR, "mds_getattr" },
{ MDS_GETATTR_NAME, "mds_getattr_lock" },
{ MDS_CLOSE, "mds_close" },
@@ -115,7 +116,7 @@
{ 401, /* was OBD_LOG_CANCEL */ "llog_cancel" },
{ 402, /* was OBD_QC_CALLBACK */ "obd_quota_callback" },
{ OBD_IDX_READ, "dt_index_read" },
- { LLOG_ORIGIN_HANDLE_CREATE, "llog_origin_handle_open" },
+ { LLOG_ORIGIN_HANDLE_CREATE, "llog_origin_handle_open" },
{ LLOG_ORIGIN_HANDLE_NEXT_BLOCK, "llog_origin_handle_next_block" },
{ LLOG_ORIGIN_HANDLE_READ_HEADER, "llog_origin_handle_read_header" },
{ 504, /*LLOG_ORIGIN_HANDLE_WRITE_REC*/ "llog_origin_handle_write_rec" },
@@ -106,7 +106,9 @@ void lustre_assert_wire_constants(void)
(long long)OST_QUOTA_ADJUST_QUNIT);
LASSERTF(OST_LADVISE == 21, "found %lld\n",
(long long)OST_LADVISE);
- LASSERTF(OST_LAST_OPC == 22, "found %lld\n",
+ LASSERTF(OST_FALLOCATE == 22, "found %lld\n",
+ (long long)OST_FALLOCATE);
+ LASSERTF(OST_LAST_OPC == 23, "found %lld\n",
(long long)OST_LAST_OPC);
LASSERTF(OBD_OBJECT_EOF == 0xffffffffffffffffULL, "found 0x%.16llxULL\n",
OBD_OBJECT_EOF);
@@ -956,6 +956,7 @@ enum ost_cmd {
OST_QUOTACTL = 19,
OST_QUOTA_ADJUST_QUNIT = 20, /* not used since 2.4 */
OST_LADVISE = 21,
+ OST_FALLOCATE = 22,
OST_LAST_OPC /* must be < 33 to avoid MDS_GETATTR */
};
#define OST_FIRST_OPC OST_REPLY
@@ -2789,6 +2790,7 @@ struct obdo {
#define o_dropped o_misc
#define o_cksum o_nlink
#define o_grant_used o_data_version
+#define o_falloc_mode o_nlink
/* request structure for OST's */
struct ost_body {