All of lore.kernel.org
 help / color / mirror / Atom feed
From: Derrell.Lipman@UnwiredUniverse.com
To: reiserfs-list@namesys.com
Subject: buffers not flushed when remounting read-only?
Date: Mon, 24 Jan 2005 16:25:11 -0500	[thread overview]
Message-ID: <hdl6cyfc.fsf@random.internal> (raw)

Hello.  I'm using reiserfs 3.6.19 and seem to be finding that the following
mount() call does not flush all buffers to disk.  I'm wondering if it is
expected that this should flush all in-memory buffers to disk:

   mount(device, path, "reiserfs",
         MS_MC_VAL | MS_NOATIME | MS_REMOUNT | MS_RDONLY, NULL)

The device was previously mounted for writing, much was written to it, and I do
this mount() command in preparation for writing the device the file system is
mounted on, to a DVD.  Once written to DVD, very occasionally, the DVD image
has a bad file system, as detected by either "reiserfsck --check" or an attempt
to mount it (which can hang with WCHAN = "wait_on_buffer").

I'm using Linux 2.4.27, Debian Sarge

Should remounting a file system as read-only flush all in-cache buffers to
disk?  Should I be able to copy the partition (/dev/hdaXX) in its entirety
following this remount, and have a clean file system in the copy?

Thanks,

Derrell

ps. I'm not subscribed to the list.  Please including me in any replies.

                 reply	other threads:[~2005-01-24 21: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=hdl6cyfc.fsf@random.internal \
    --to=derrell.lipman@unwireduniverse.com \
    --cc=reiserfs-list@namesys.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.