From: Robert Schwebel <r.schwebel@pengutronix.de>
To: "Uwe Kleine-König" <u.kleine-koenig@pengutronix.de>
Cc: ptxdist@pengutronix.de
Subject: Re: [ptxdist] [PATCH] rc-once: make sure data makes it to the medium
Date: Mon, 10 Aug 2020 15:59:00 +0200 [thread overview]
Message-ID: <20200810135900.aklcw4an55tytzy7@pengutronix.de> (raw)
In-Reply-To: <20200810134615.sipkuohxucftbcy2@pengutronix.de>
[-- Attachment #1.1: Type: text/plain, Size: 1046 bytes --]
On Mon, Aug 10, 2020 at 03:46:15PM +0200, Uwe Kleine-König wrote:
> > umount() {
> > + # make sure rc-once generated data makes it to the medium
> > + sync
> > if ! mount_root_restore; then
> > # remounting rw/ro during the second boot will flush anything
> > # left in the filesystem journal
>
> I would expect that the mount -o remount,ro that is done (sometimes) as
> part of mount_root_restore should handle this just fine.
In my case the system is always booted rw, so remounting ro doesn't
happen here at all, the script exits and the labgrid server powers the
board off before the data is written to disk.
Most other systems mount / ro, so remounting happens here and acts as a
flush barrier.
rsc
--
Pengutronix e.K. | Dipl.-Ing. Robert Schwebel |
Steuerwalder Str. 21 | https://www.pengutronix.de/ |
31137 Hildesheim, Germany | Phone: +49-5121-206917-0 |
Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-9 |
[-- Attachment #1.2: signature.asc --]
[-- Type: application/pgp-signature, Size: 195 bytes --]
[-- Attachment #2: Type: text/plain, Size: 181 bytes --]
_______________________________________________
ptxdist mailing list
ptxdist@pengutronix.de
To unsubscribe, send a mail with subject "unsubscribe" to ptxdist-request@pengutronix.de
next prev parent reply other threads:[~2020-08-10 13:59 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-08-10 10:17 Robert Schwebel
2020-08-10 13:46 ` Uwe Kleine-König
2020-08-10 13:59 ` Robert Schwebel [this message]
2020-08-10 16:03 ` Bruno Thomsen
2020-08-11 10:24 ` Ladislav Michl
2020-08-17 6:18 ` [ptxdist] [APPLIED] " Michael Olbrich
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=20200810135900.aklcw4an55tytzy7@pengutronix.de \
--to=r.schwebel@pengutronix.de \
--cc=ptxdist@pengutronix.de \
--cc=u.kleine-koenig@pengutronix.de \
/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