NetBSD Problem Report #53055
From www@NetBSD.org Sun Feb 25 16:29:24 2018
Return-Path: <www@NetBSD.org>
Received: from mail.netbsd.org (mail.netbsd.org [199.233.217.200])
(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))
(Client CN "mail.NetBSD.org", Issuer "mail.NetBSD.org CA" (not verified))
by mollari.NetBSD.org (Postfix) with ESMTPS id C5BC37A18A
for <gnats-bugs@gnats.NetBSD.org>; Sun, 25 Feb 2018 16:29:24 +0000 (UTC)
Message-Id: <20180225162923.D705D7A1F7@mollari.NetBSD.org>
Date: Sun, 25 Feb 2018 16:29:23 +0000 (UTC)
From: coypu@sdf.org
Reply-To: coypu@sdf.org
To: gnats-bugs@NetBSD.org
Subject: pkg_add should sync after adding a package
X-Send-Pr-Version: www-1.0
>Number: 53055
>Category: pkg
>Synopsis: pkg_add should sync after adding a package
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: pkg-manager
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Sun Feb 25 16:30:00 +0000 2018
>Originator: coypu
>Release: NetBSD 8.0_BETA
>Organization:
>Environment:
NetBSD planets 8.0_BETA NetBSD 8.0_BETA (GENERIC) #0: Sun Feb 25 13:32:49 IST 2018 fly@planets:/home/fly/obj8/sys/arch/amd64/compile/GENERIC amd64
>Description:
While testing PR 53053, pkg corruption was really bad if the machine crashes right after adding a package.
calling sync after manually, it was fine.
sync is pretty cheap, we should do it for normal pkg addition.
>How-To-Repeat:
>Fix:
(Contact us)
$NetBSD: query-full-pr,v 1.43 2018/01/16 07:36:43 maya Exp $
$NetBSD: gnats_config.sh,v 1.9 2014/08/02 14:16:04 spz Exp $
Copyright © 1994-2017
The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.