cache sync on block device.

From: Sreenivasa Honnur <shonnur_at_chelsio.com>
Date: Mon, 4 Mar 2013 16:47:18 +0000
Hi,
I want to  implementing cache sync functionality for a block device. I referred to CTL code, below link says
http://freebsd.1045724.n5.nabble.com/CAM-Target-Layer-and-dev-isp-td5727548.html

" If you use a block device (like a zvol) as the backing store, you'll want 
to disable sending cache syncs to the disk, since that will trigger a GEOM 
assertion. 

ctladm realsync off"

How is cache sync (flush) implemented for a block device ? bio_cmd=BIO_FLUSH results in ASSERT.

Thanks
Sreenivas
Received on Mon Mar 04 2013 - 16:27:03 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:40:35 UTC