rbd: add doc comments for Flush function

Signed-off-by: John Mulligan <jmulligan@redhat.com>
This commit is contained in:
John Mulligan 2020-02-25 14:44:08 -05:00 committed by John Mulligan
parent 51e9a080bb
commit 644b7939d0
1 changed files with 4 additions and 1 deletions

View File

@ -866,6 +866,9 @@ func (image *Image) WriteAt(data []byte, off int64) (n int, err error) {
return ret, err return ret, err
} }
// Flush all cached writes to storage.
//
// Implements:
// int rbd_flush(rbd_image_t image); // int rbd_flush(rbd_image_t image);
func (image *Image) Flush() error { func (image *Image) Flush() error {
if err := image.validate(imageIsOpen); err != nil { if err := image.validate(imageIsOpen); err != nil {