From: Alexander.Boyko Date: Fri, 15 Nov 2013 06:05:01 +0000 (+0400) Subject: LU-1757 brw: added OBDO short io flag X-Git-Tag: 2.5.53~60 X-Git-Url: https://git.whamcloud.com/?p=fs%2Flustre-release.git;a=commitdiff_plain;h=491eb747915eb7fbde1babb2689b657fca6f1be1 LU-1757 brw: added OBDO short io flag To prevent collisions with any future flags needed in features written against this branch. Signed-off-by: Alexander Boyko Xyratex-bug-id: MRP-1460 Change-Id: I7084c72fa0c8e2cc0eff1b5c93f1a560d3946a54 Reviewed-on: http://review.whamcloud.com/8182 Tested-by: Jenkins Reviewed-by: Andreas Dilger Tested-by: Maloo Reviewed-by: Vitaly Fertman --- diff --git a/lustre/include/lustre/lustre_idl.h b/lustre/include/lustre/lustre_idl.h index 4ee7ccd..ec21072 100644 --- a/lustre/include/lustre/lustre_idl.h +++ b/lustre/include/lustre/lustre_idl.h @@ -1516,6 +1516,7 @@ enum obdo_flags { OBD_FL_RECOV_RESEND = 0x00080000, /* recoverable resent */ OBD_FL_NOSPC_BLK = 0x00100000, /* no more block space on OST */ OBD_FL_FLUSH = 0x00200000, /* flush pages on the OST */ + OBD_FL_SHORT_IO = 0x00400000, /* short io request */ /* Note that while these checksum values are currently separate bits, * in 2.x we can actually allow all values from 1-31 if we wanted. */ diff --git a/lustre/utils/wirecheck.c b/lustre/utils/wirecheck.c index 36808f7..120311c 100644 --- a/lustre/utils/wirecheck.c +++ b/lustre/utils/wirecheck.c @@ -633,6 +633,8 @@ check_obdo(void) CHECK_CVALUE_X(OBD_FL_MMAP); CHECK_CVALUE_X(OBD_FL_RECOV_RESEND); CHECK_CVALUE_X(OBD_FL_NOSPC_BLK); + CHECK_CVALUE_X(OBD_FL_FLUSH); + CHECK_CVALUE_X(OBD_FL_SHORT_IO); CHECK_CVALUE_X(OBD_FL_LOCAL_MASK); } diff --git a/lustre/utils/wiretest.c b/lustre/utils/wiretest.c index 6581525..31e7cd4 100644 --- a/lustre/utils/wiretest.c +++ b/lustre/utils/wiretest.c @@ -1408,6 +1408,8 @@ void lustre_assert_wire_constants(void) CLASSERT(OBD_FL_MMAP == 0x00040000); CLASSERT(OBD_FL_RECOV_RESEND == 0x00080000); CLASSERT(OBD_FL_NOSPC_BLK == 0x00100000); + CLASSERT(OBD_FL_FLUSH == 0x00200000); + CLASSERT(OBD_FL_SHORT_IO == 0x00400000); CLASSERT(OBD_FL_LOCAL_MASK == 0xf0000000); /* Checks for struct lov_ost_data_v1 */