linux-lvm.redhat.com archive mirror
 help / color / mirror / Atom feed
From: Forza <forza@tnonline.net>
To: linux-lvm@redhat.com
Subject: [linux-lvm] How to flush dirty cache with dm-cache?
Date: Sun, 1 Oct 2023 11:14:53 +0200 (GMT+02:00)	[thread overview]
Message-ID: <b51c197.ba16e860.18aea84e80f@tnonline.net> (raw)

Hi,

Is it possible to force a flush of the dirty cache in a dm-cache device?

I read in the kernel docs[*] that there is a cleaner policy, but it doesn't describe well how to use it.

Ideally, I'd like to be able to use `dmsetup message` to issue a flush after suspending the cache to ensure that all dirty data is written to origin and no more data is dirtied before resuming. Is this possible?


Thanks
Forza

[*] https://www.kernel.org/doc/html/v6.5/admin-guide/device-mapper/cache.html

_______________________________________________
linux-lvm mailing list
linux-lvm@redhat.com
https://listman.redhat.com/mailman/listinfo/linux-lvm
read the LVM HOW-TO at http://tldp.org/HOWTO/LVM-HOWTO/


                 reply	other threads:[~2023-10-01  9:25 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=b51c197.ba16e860.18aea84e80f@tnonline.net \
    --to=forza@tnonline.net \
    --cc=linux-lvm@redhat.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).