From owner-freebsd-current@freebsd.org Fri Jun 21 22:31:35 2019 Return-Path: Delivered-To: freebsd-current@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id BC1FC15C17F9 for ; Fri, 21 Jun 2019 22:31:35 +0000 (UTC) (envelope-from cse.cem@gmail.com) Received: from mail-io1-f41.google.com (mail-io1-f41.google.com [209.85.166.41]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1O1" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 89B9A83E68; Fri, 21 Jun 2019 22:31:34 +0000 (UTC) (envelope-from cse.cem@gmail.com) Received: by mail-io1-f41.google.com with SMTP id u19so2086461ior.9; Fri, 21 Jun 2019 15:31:34 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:reply-to :from:date:message-id:subject:to:cc; bh=Y+b3Xh1jgtxTHR5Z8HRLssdPWMDngIif9VHz0QJ08oI=; b=ELbHmfdYxp5oW9sx/b81Sl8rjBdCkKdr5fvRRn4Cde4WwgtJrTE+nFsG5VT+C8qH9S EA4YukUu9mGruVjUwGWLSLXOeiFjNTnn3/mJEku7YqrYbTC4Z0xnU0TWNeGC/J2iFSDL Kgii2VYEh4/PEYdxR5YfzdpyAcjZaEiOo9fduCP5Pas/usVVS/pR8zEvopfp+bExuZ1A GBr9NKVRcDzSVePDdzaoTQgcCBfMk2X9VWqPKzGy631oRJ8zbmf3ZIz5VJnuRjqZGojX UF1/kHkYQ9UOzp7L2xUB37HJiypJNmxMmC7ZLPe3Vz6D+/sALbXYjpKUKW05lt9hI5AU PC3g== X-Gm-Message-State: APjAAAX8/B3+GkYj40fQemf5LQVN2+a4JDlmgISFriNjv+ebaVjvIVmg 82xcuT6qxaRc7FsfeZP2y2LObYIR X-Google-Smtp-Source: APXvYqxLWd3m/FIeG+9vTBHCSFRg0wEdKntl7e4+fd1JN8raOCeO+Zc3io9A+1KqYwiE8IRBBzlbBg== X-Received: by 2002:a6b:7008:: with SMTP id l8mr8198072ioc.292.1561156288243; Fri, 21 Jun 2019 15:31:28 -0700 (PDT) Received: from mail-io1-f45.google.com (mail-io1-f45.google.com. [209.85.166.45]) by smtp.gmail.com with ESMTPSA id u187sm8787875iod.37.2019.06.21.15.31.27 (version=TLS1_3 cipher=AEAD-AES128-GCM-SHA256 bits=128/128); Fri, 21 Jun 2019 15:31:27 -0700 (PDT) Received: by mail-io1-f45.google.com with SMTP id j6so553513ioa.5; Fri, 21 Jun 2019 15:31:27 -0700 (PDT) X-Received: by 2002:a02:aa0d:: with SMTP id r13mr9963141jam.129.1561156287804; Fri, 21 Jun 2019 15:31:27 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: Reply-To: cem@freebsd.org From: Conrad Meyer Date: Fri, 21 Jun 2019 15:31:16 -0700 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: Reducing UFS corruption from unclean shutdowns? To: Alan Somers Cc: FreeBSD CURRENT Content-Type: text/plain; charset="UTF-8" X-Rspamd-Queue-Id: 89B9A83E68 X-Spamd-Bar: ---- Authentication-Results: mx1.freebsd.org; spf=pass (mx1.freebsd.org: domain of csecem@gmail.com designates 209.85.166.41 as permitted sender) smtp.mailfrom=csecem@gmail.com X-Spamd-Result: default: False [-4.36 / 15.00]; RCVD_VIA_SMTP_AUTH(0.00)[]; HAS_REPLYTO(0.00)[cem@freebsd.org]; R_SPF_ALLOW(-0.20)[+ip4:209.85.128.0/17]; REPLYTO_ADDR_EQ_FROM(0.00)[]; RCVD_COUNT_THREE(0.00)[4]; TO_DN_ALL(0.00)[]; MX_GOOD(-0.01)[cached: alt3.gmail-smtp-in.l.google.com]; RCPT_COUNT_TWO(0.00)[2]; NEURAL_HAM_SHORT(-0.97)[-0.971,0]; FORGED_SENDER(0.30)[cem@freebsd.org,csecem@gmail.com]; R_DKIM_NA(0.00)[]; FREEMAIL_ENVFROM(0.00)[gmail.com]; ASN(0.00)[asn:15169, ipnet:209.85.128.0/17, country:US]; TAGGED_FROM(0.00)[]; FROM_NEQ_ENVFROM(0.00)[cem@freebsd.org,csecem@gmail.com]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000,0]; MIME_TRACE(0.00)[0:+]; FROM_HAS_DN(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; MIME_GOOD(-0.10)[text/plain]; RCVD_TLS_LAST(0.00)[]; DMARC_NA(0.00)[freebsd.org]; SUBJECT_ENDS_QUESTION(1.00)[]; RCVD_IN_DNSWL_NONE(0.00)[41.166.85.209.list.dnswl.org : 127.0.5.0]; IP_SCORE(-2.38)[ip: (-6.07), ipnet: 209.85.128.0/17(-3.44), asn: 15169(-2.33), country: US(-0.06)] X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 21 Jun 2019 22:31:36 -0000 On Fri, Jun 21, 2019 at 2:55 PM Alan Somers wrote: > I would've thought that immediately following a sync(8), the > filesystem would be consistent. Why do I still see errors after a > panic in files that were written before I sync()ed? > -Alan Hi Alan, Contra the name, sync(2) (sync(8)) isn't synchronous. It invokes VFS_SYNC() with MNT_NOWAIT across all mountpoints. Cheers, Conrad