Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.debian.user > #237881

Re: Problem with crash post-install [ was: Update or reinstall ]

From Greg Wooledge <greg@wooledge.org>
Newsgroups linux.debian.user
Subject Re: Problem with crash post-install [ was: Update or reinstall ]
Date 2021-07-29 13:40 +0200
Message-ID <CGcyl-6Hk-3@gated-at.bofh.it> (permalink)
References (2 earlier) <CG9At-4X5-7@gated-at.bofh.it> <CG9At-4X5-5@gated-at.bofh.it> <CGbsB-63M-1@gated-at.bofh.it> <CGbLX-69Y-5@gated-at.bofh.it> <CGbVE-6da-5@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


On Thu, Jul 29, 2021 at 06:52:37AM -0400, Polyna-Maude Racicot-Summerside wrote:
> As far as I know, sync doesn't work in the background !

On many systems, it does.  I can't even find a clear statement in the
bullseye sync(1) man page of whether it does or not.

The bullseye sync(1) comes from GNU coreutils 8.32.

Googling turns up a different sync(8) page,
<https://linux.die.net/man/8/sync> which says:

  On Linux, sync is only guaranteed to schedule the dirty blocks for
  writing; it can actually take a short time before all the blocks are
  finally written. The reboot(8) and halt(8) commands take this into
  account by sleeping for a few seconds after calling sync(2).

That man page claims to be from fileutils-4.0.

On bullseye, sync(2) says:

       According to the standard specification  (e.g.,  POSIX.1-2001),  sync()
       schedules the writes, but may return before the actual writing is done.
       However Linux waits for I/O completions, and thus  sync()  or  syncfs()
       provide the same guarantees as fsync() called on every file in the sys‐
       tem or filesystem respectively.

So, even on Linux systems, it would appear the behavior has varied
over time.  On non-Linux systems, I would expect a high probability
that the sync(8) or sync(1) command returns immediately, without
waiting for the synchronization to complete.

Back to linux.debian.user | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

Update or reinstall Gunnar Gervin <dofeelok@gmail.com> - 2021-07-28 21:20 +0200
  Re: Update or reinstall Polyna-Maude Racicot-Summerside <debian@polynamaude.com> - 2021-07-28 23:30 +0200
    Re: Update or reinstall David Wright <deblis@lionunicorn.co.uk> - 2021-07-29 07:00 +0200
      Re: Update or reinstall Polyna-Maude Racicot-Summerside <debian@polynamaude.com> - 2021-07-29 10:20 +0200
        Re: Update or reinstall David Wright <deblis@lionunicorn.co.uk> - 2021-07-29 21:20 +0200
    Re: Update or reinstall Polyna-Maude Racicot-Summerside <debian@polynamaude.com> - 2021-07-29 10:30 +0200
      Re: Update or reinstall <tomas@tuxteam.de> - 2021-07-29 10:40 +0200
    Problem with crash post-install [ was: Update or reinstall ] Polyna-Maude Racicot-Summerside <debian@polynamaude.com> - 2021-07-29 10:30 +0200
      Re: Problem with crash post-install [ was: Update or reinstall ] Marco Möller <talby@debianlists.mobilxpress.net> - 2021-07-29 12:30 +0200
        Re: Problem with crash post-install [ was: Update or reinstall ] Polyna-Maude Racicot-Summerside <debian@polynamaude.com> - 2021-07-29 12:50 +0200
        Re: Problem with crash post-install [ was: Update or reinstall ] <tomas@tuxteam.de> - 2021-07-29 12:50 +0200
          Re: Problem with crash post-install [ was: Update or reinstall ] Polyna-Maude Racicot-Summerside <debian@polynamaude.com> - 2021-07-29 13:00 +0200
            Re: Problem with crash post-install [ was: Update or reinstall ] Greg Wooledge <greg@wooledge.org> - 2021-07-29 13:40 +0200
              Re: Problem with crash post-install [ was: Update or reinstall ] Dan Ritter <dsr@randomstring.org> - 2021-07-29 13:50 +0200
                Re: Problem with crash post-install [ was: Update or reinstall ] songbird <songbird@anthive.com> - 2021-07-29 17:10 +0200
            sync sync, was Re: Problem with crash post-install "Thomas Schmitt" <scdbackup@gmx.net> - 2021-07-29 13:40 +0200
              Re: sync sync, was Re: Problem with crash post-install Polyna-Maude Racicot-Summerside <debian@polynamaude.com> - 2021-07-29 18:50 +0200
            Re: Problem with crash post-install [ was: Update or reinstall ] Marco Möller <talby@debianlists.mobilxpress.net> - 2021-07-29 18:20 +0200
              Re: Problem with crash post-install [ was: Update or reinstall ] David Wright <deblis@lionunicorn.co.uk> - 2021-07-29 21:20 +0200
                Re: Problem with crash post-install [ was: Update or reinstall ] Polyna-Maude Racicot-Summerside <debian@polynamaude.com> - 2021-07-29 21:50 +0200

csiph-web