Received: by mail.netbsd.org (Postfix, from userid 605) id 7298514A3E4; Wed, 22 Apr 2015 07:46:17 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by mail.netbsd.org (Postfix) with ESMTP id 49C7714A3F6 for ; Wed, 22 Apr 2015 07:27:10 +0000 (UTC) X-Virus-Scanned: amavisd-new at NetBSD.org Received: from mail.netbsd.org ([127.0.0.1]) by localhost (mail.NetBSD.org [127.0.0.1]) (amavisd-new, port 10025) with ESMTP id 7J2-65SY9Zp2 for ; Wed, 22 Apr 2015 07:27:09 +0000 (UTC) Received: from cvs.netbsd.org (cvs.NetBSD.org [IPv6:2001:4f8:3:7:2e0:81ff:fe30:95bd]) by mail.netbsd.org (Postfix) with ESMTP id 954F314A1E3 for ; Wed, 22 Apr 2015 07:27:09 +0000 (UTC) Received: by cvs.netbsd.org (Postfix, from userid 500) id 8174498; Wed, 22 Apr 2015 07:27:09 +0000 (UTC) Content-Disposition: inline Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset="US-ASCII" MIME-Version: 1.0 Date: Wed, 22 Apr 2015 07:27:09 +0000 From: "Maxime Villard" Subject: CVS commit: src/sys/ufs/ffs To: source-changes@NetBSD.org X-Mailer: log_accum Message-Id: <20150422072709.8174498@cvs.netbsd.org> Sender: source-changes-owner@NetBSD.org List-Id: source-changes.NetBSD.org Precedence: bulk Reply-To: source-changes-d@NetBSD.org Mail-Reply-To: "Maxime Villard" Mail-Followup-To: source-changes-d@NetBSD.org Module Name: src Committed By: maxv Date: Wed Apr 22 07:27:09 UTC 2015 Modified Files: src/sys/ufs/ffs: ffs_vfsops.c Log Message: Instead of duplicating code, create ffs_is_appleufs(): returns 1 if the device is an AppleUFS FS, 0 otherwise. This changes the behavior a bit: if the kernel cannot determine whether the disk is an AppleUFS one or not, it now considers it as a normal UFS rather than returning an error and not mounting/reloading it. No particular comment on tech-kern@ To generate a diff of this commit: cvs rdiff -u -r1.328 -r1.329 src/sys/ufs/ffs/ffs_vfsops.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.