From owner-freebsd-current@freebsd.org Fri Jun 21 22:37:30 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 92A0315C1A14 for ; Fri, 21 Jun 2019 22:37:30 +0000 (UTC) (envelope-from wlosh@bsdimp.com) Received: from mail-qk1-x72e.google.com (mail-qk1-x72e.google.com [IPv6:2607:f8b0:4864:20::72e]) (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 EEFE184274 for ; Fri, 21 Jun 2019 22:37:28 +0000 (UTC) (envelope-from wlosh@bsdimp.com) Received: by mail-qk1-x72e.google.com with SMTP id t8so5657507qkt.1 for ; Fri, 21 Jun 2019 15:37:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bsdimp-com.20150623.gappssmtp.com; s=20150623; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=NyPV9WZK0xnqVWInYPNWoQ8OMNVmwBsZ9v+Nhoc4xkA=; b=lvzsCVfZumvff88y0xZeMPGzQ5BBhiWvLGRcWuR3PXXlD+kVn8DTirzQpc/wMFqToE BBaDl99D8ngbnxsoMy+GryNAMJHkS/k2nAeRcr1WnesfmqkFzwA3ar+4XL4UQLYvN8Sj QiKrNnRSgRslyt2LBoPUJUe6ZXrzPoagGSjTFvAiCgMK6z2YJUeMI5oidOgxsNHjcUYc CK3oHUOniioj8xHzv+llnIjRPMxJP5fYFdM/2ARCOiHuwCJajySTARTtg7e5Wuqmars1 UM7gpwU/WnW4NBkXyIjwao+QaGJk3di1o4mkhqqHa1eUVnf+V94pLHm6CACbqEomOwhs S5Eg== 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:from:date :message-id:subject:to:cc; bh=NyPV9WZK0xnqVWInYPNWoQ8OMNVmwBsZ9v+Nhoc4xkA=; b=tTXeS8ZKanAj55cfHbc5jzp8ZXuNxBeH20M4M2z3+0mqQOMqJ4Is14i08D8BaDneyH uAAEN+vxW6fvHrD1Qc15bg5z7dEqLsCm7cR52VafZaU4p8JN6f/4cT7TgFf+sewFn/zf vay1eRb1IF+cbK5niTTv2gp1Moyit/f3n91AyklBuWUaX6b/xzIiQDdYs/u6AEWdSgMI NJeb4Hlq+6n+i/agbn6bpuXxq8zAsvfQllzHjrt9spEMBGMw/kS/Yp8ZSIPKxV3K7ZOc fiI2Uq4SrfbYzxT6pEfFHJTftlsoyL6A+jGZbfYPYEUd4TS+9V4V62034S/lYtwfYrXp zTgQ== X-Gm-Message-State: APjAAAWj9mwZkuphFcCt9xzEg0HgQrbU2agynDE/+oL/I4FlZw4AhTDF b9DyAJo3MOGN2mpbfLsQV96wZ5k6rzEk/MDVavzI31hn X-Google-Smtp-Source: APXvYqydw/xg+BIGe9SLpWo85Oi9Rw9GOLBraTrVyECAF6KmZPBpUs2JYTsaiHunbvIC1gImytwhtKarSxiZldWwBM0= X-Received: by 2002:ae9:f107:: with SMTP id k7mr49500022qkg.215.1561156648024; Fri, 21 Jun 2019 15:37:28 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Warner Losh Date: Fri, 21 Jun 2019 15:37:14 -0700 Message-ID: Subject: Re: Reducing UFS corruption from unclean shutdowns? To: "Conrad E. Meyer" Cc: Alan Somers , FreeBSD Current X-Rspamd-Queue-Id: EEFE184274 X-Spamd-Bar: ---- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=bsdimp-com.20150623.gappssmtp.com header.s=20150623 header.b=lvzsCVfZ X-Spamd-Result: default: False [-4.99 / 15.00]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000,0]; R_DKIM_ALLOW(-0.20)[bsdimp-com.20150623.gappssmtp.com:s=20150623]; FROM_HAS_DN(0.00)[]; RCPT_COUNT_THREE(0.00)[3]; IP_SCORE(-2.99)[ip: (-9.43), ipnet: 2607:f8b0::/32(-3.15), asn: 15169(-2.33), country: US(-0.06)]; MIME_GOOD(-0.10)[multipart/alternative,text/plain]; PREVIOUSLY_DELIVERED(0.00)[freebsd-current@freebsd.org]; DMARC_NA(0.00)[bsdimp.com]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; TO_MATCH_ENVRCPT_SOME(0.00)[]; TO_DN_ALL(0.00)[]; DKIM_TRACE(0.00)[bsdimp-com.20150623.gappssmtp.com:+]; MX_GOOD(-0.01)[cached: ALT1.aspmx.l.google.com]; RCVD_IN_DNSWL_NONE(0.00)[e.2.7.0.0.0.0.0.0.0.0.0.0.0.0.0.0.2.0.0.4.6.8.4.0.b.8.f.7.0.6.2.list.dnswl.org : 127.0.5.0]; NEURAL_HAM_SHORT(-0.99)[-0.990,0]; R_SPF_NA(0.00)[]; FORGED_SENDER(0.30)[imp@bsdimp.com,wlosh@bsdimp.com]; SUBJECT_ENDS_QUESTION(1.00)[]; MIME_TRACE(0.00)[0:+,1:+]; ASN(0.00)[asn:15169, ipnet:2607:f8b0::/32, country:US]; FROM_NEQ_ENVFROM(0.00)[imp@bsdimp.com,wlosh@bsdimp.com]; RCVD_TLS_LAST(0.00)[]; RCVD_COUNT_TWO(0.00)[2] Content-Type: text/plain; charset="UTF-8" X-Content-Filtered-By: Mailman/MimeDel 2.1.29 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:37:30 -0000 On Fri, Jun 21, 2019, 3:33 PM Conrad Meyer wrote: > 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. > Yes. Sync(2) just starts the I/O, but it may be delayed if there is a lot of dirty buffers. The other issue is that new buffers may be dirtied... Warner Cheers, > Conrad > _______________________________________________ > freebsd-current@freebsd.org mailing list > https://lists.freebsd.org/mailman/listinfo/freebsd-current > To unsubscribe, send any mail to "freebsd-current-unsubscribe@freebsd.org" >