cloudbase / wnbd

Windows Ceph RBD NBD driver
GNU Lesser General Public License v2.1
58 stars 26 forks source link

Add flush, unmap and FUA support #10

Closed petrutlucian94 closed 4 years ago

petrutlucian94 commented 4 years ago

Add flush, unmap and FUA support

This change will send flushes using NBD_CMD_FLUSH, also propagating the Force Unit Access flag if the NBD server supports those operations.

We'll stick to handling SCSIOP_SYNCHRONIZE_CACHE. We won't handle SRB_FUNCTION_FLUSH since those requests will come in pairs.

Since we're now going to handle NBD flags, with minimal changes we can start handling TRIM/UNMAP requests as well.

Signed-off-by: Lucian Petrut lpetrut@cloudbasesolutions.com

aserdean commented 4 years ago

3/3 Pass on SDV 👍