From 3410ccd4c5b5191ac436f8219842c25fc3cd30e9 Mon Sep 17 00:00:00 2001 From: Patrick J Cherry Date: Fri, 2 Feb 2018 20:50:48 +0000 Subject: [PATCH] Fixed up commenting around our advertised flags. --- src/server/client.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/server/client.c b/src/server/client.c index 58ba199..5cc1c17 100644 --- a/src/server/client.c +++ b/src/server/client.c @@ -307,9 +307,11 @@ void client_write_init( struct client * client, uint64_t size ) memcpy( init.passwd, INIT_PASSWD, sizeof( init.passwd ) ); init.magic = INIT_MAGIC; init.size = size; - // TODO actually implement these flags! + /* As more features are implemented, this is the place to advertise + * them. + */ init.flags = FLAG_HAS_FLAGS | FLAG_SEND_FLUSH | FLAG_SEND_FUA; - // memset( init.reserved, 0, 124 ); + memset( init.reserved, 0, 124 ); nbd_h2r_init( &init, &init_raw );