Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 18 Feb 2014 09:02:33 +0330
From:      s m <sam.gh1986@gmail.com>
Cc:        freebsd-questions <freebsd-questions@freebsd.org>
Subject:   Re: Fwd: how to mount r/w encrypted partition when it is mount ad read-only?
Message-ID:  <CAA_1SgG24gGkjxtKtW2ubsV70uv0hiWs8=Z_mpBmYKBPhQcrFQ@mail.gmail.com>
In-Reply-To: <20140215221202.GA25183@neutralgood.org>
References:  <CAA_1SgFoz1a9Z40UNF0H8YBgnx7C=UBvG7diU-D6BXFU5WjkDw@mail.gmail.com> <CAA_1SgENBe7Vk9ubbtaGag03A%2By5Tx=4q6bdxMajoYdcSFPL9w@mail.gmail.com> <20140213132836.5c04a470.freebsd@edvax.de> <20140215221202.GA25183@neutralgood.org>

next in thread | previous in thread | raw e-mail | index | archive | help
thank you guys for your completed answers. "u" flag solve my problem:)

thank you so much
Sam


On Sun, Feb 16, 2014 at 1:42 AM, <kpneal@pobox.com> wrote:

> TL;DR: the sync command shouldn't be needed. The mount command should
> be enough.
>
> On Thu, Feb 13, 2014 at 01:28:36PM +0100, Polytropon wrote:
> > THis _should_ work with GELI encrypted partitions too, even
> > though I haven't tested it. Note that reverting back to r/o
> > could be delayed when writes are still pending; calling "sync"
> > should issue all buffers to be written. In worst case, -f can
>
> Well, almost.
>
> The 'sync' command uses the sync system call, and that system call
> _schedules_
> blocks for writing but does _not_ wait for them to be written.
>
> Traditionally, at least. Before the 'clean bit' was added to the filesystem
> (about 20 years ago) the traditional way to stop a system was the command
> sequence:
> sync ; sync ; sync ; halt
>
> (Well, ok, that's how I was taught.)
>
> I assume the sync command still works the same way. I'm backlevel and
> still running 8.2, but the sync system call man page still says this:
>
> BUGS
>      The sync() system call may return before the buffers are completely
>      flushed.
>
> Personally, I hope that the attempt to change the filesystem to read-only
> would be hint enough that all buffers need to be flushed right now. I
> also hope the mount command does not return until the job is done. If it
> does then a bug report should probably be filed.
> --
> "A method for inducing cats to exercise consists of directing a beam of
> invisible light produced by a hand-held laser apparatus onto the floor ...
> in the vicinity of the cat, then moving the laser ... in an irregular way
> fascinating to cats,..." -- US patent 5443036, "Method of exercising a cat"
>



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAA_1SgG24gGkjxtKtW2ubsV70uv0hiWs8=Z_mpBmYKBPhQcrFQ>