From owner-freebsd-current@FreeBSD.ORG Sun Sep 25 08:06:08 2011 Return-Path: Delivered-To: current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 8F1BA106564A; Sun, 25 Sep 2011 08:06:08 +0000 (UTC) (envelope-from yanegomi@gmail.com) Received: from mail-qy0-f182.google.com (mail-qy0-f182.google.com [209.85.216.182]) by mx1.freebsd.org (Postfix) with ESMTP id 3E4C48FC13; Sun, 25 Sep 2011 08:06:07 +0000 (UTC) Received: by qyk4 with SMTP id 4so5668078qyk.13 for ; Sun, 25 Sep 2011 01:06:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:cc:content-type; bh=nRA3LCbT/2DbjIcbtFnjYkbMjNOjTXHJx1RjI+8Niqo=; b=mChY/oMx9G2mjtUfuqQiLNhr/qm11Wmo178FmcIDs8L1CEmZvlE9RlqmLcJgvlcpJs tVumNTtFVsAOupnhDV/dAAG6pYxHmeY+wL+7oe6iLBtmBCZM+Rrj78oROi6yshCvQbmP 3j7QQZMOQBstj8VQpbUS8uaFmAKhOvyOQqzLM= MIME-Version: 1.0 Received: by 10.224.183.205 with SMTP id ch13mr139026qab.274.1316937965534; Sun, 25 Sep 2011 01:06:05 -0700 (PDT) Received: by 10.224.74.82 with HTTP; Sun, 25 Sep 2011 01:06:05 -0700 (PDT) Date: Sun, 25 Sep 2011 01:06:05 -0700 Message-ID: From: Garrett Cooper To: current@freebsd.org, freebsd-fs@freebsd.org Content-Type: text/plain; charset=ISO-8859-1 Cc: Xin LI Subject: Need to force sync(2) before umounting UFS1 filesystems? X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 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: Sun, 25 Sep 2011 08:06:08 -0000 Hi, I've been doing builds with FreeNAS recently on 9.x-BETA2 machines recently and I've noticed that I need to add 2 'sync's prior to each umount command in the nanobsd scripts when running repeated builds, otherwise it fails with: umount: unmount of /scratch/freenas/obj.amd64/_.mnt failed: Device busy Running fstat -f in the sh EXIT trap doesn't reveal anything helpful: USER CMD PID FD MOUNT INUM MODE SZ|DV R/W root fstat 79637 wd /scratch/freenas/obj.amd64/_.mnt 2 drwxr-xr-x 512 r Talking to Xin yesterday, he was convinced that this was a filesystem//kern bug. Before I file a PR, I'm wondering if anyone else has seen this issue.. Thanks! -Garrett PS I've seen the above behavior on the following systems.. FreeBSD bayonetta.local 9.0-BETA2 FreeBSD 9.0-BETA2 #0 r225653M: Tue Sep 20 08:36:49 PDT 2011 gcooper@bayonetta.local:/usr/obj/usr/src/sys/BAYONETTA amd64 FreeBSD burnout.ixsystems.com 9.0-BETA1 FreeBSD 9.0-BETA1 #0 r224989: Sun Aug 21 14:12:11 PDT 2011 gcooper@burnout.ixsystems.com:/usr/obj/usr/src/sys/BURNOUT amd64 FreeBSD fallout.local 9.0-BETA2 FreeBSD 9.0-BETA2 #10 r225587M: Thu Sep 15 09:07:08 PDT 2011 root@fallout.local:/usr/obj/usr/src/sys/FALLOUT amd64 FreeBSD streetfighter.ixsystems.com 9.0-BETA2 FreeBSD 9.0-BETA2 #0 r225558: Wed Sep 14 20:29:45 PDT 2011 gcooper@streetfighter.ixsystems.com:/usr/obj/usr/src/sys/STREETFIGHTER amd64