From owner-freebsd-fs@FreeBSD.ORG Thu Dec 9 18:13:41 2010 Return-Path: Delivered-To: freebsd-fs@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id E54CB106564A; Thu, 9 Dec 2010 18:13:41 +0000 (UTC) (envelope-from mckusick@mckusick.com) Received: from chez.mckusick.com (chez.mckusick.com [64.81.247.49]) by mx1.freebsd.org (Postfix) with ESMTP id 6A8328FC15; Thu, 9 Dec 2010 18:13:41 +0000 (UTC) Received: from chez.mckusick.com (localhost [127.0.0.1]) by chez.mckusick.com (8.14.3/8.14.3) with ESMTP id oB9IDd2H078366; Thu, 9 Dec 2010 10:13:39 -0800 (PST) (envelope-from mckusick@chez.mckusick.com) Message-Id: <201012091813.oB9IDd2H078366@chez.mckusick.com> To: Kostik Belousov In-reply-to: <20101209103411.GL33073@deviant.kiev.zoral.com.ua> Date: Thu, 09 Dec 2010 10:13:39 -0800 From: Kirk McKusick Cc: freebsd-fs@freebsd.org, pjd@freebsd.org, Oliver Fromme Subject: Re: TRIM support for UFS? X-BeenThere: freebsd-fs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Filesystems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 09 Dec 2010 18:13:42 -0000 Other than the nit pointed out by Pawel, the diffs look good to me. You should consider adding the -t option to newfs so that the TRIM option can be specified at the time the filesystem is created (as a general rule, anything you can do with tunefs should also be possible with newfs). I agree with your decision to let administrators opt-out of doing TRIM. If experience shows it to be generally useful to have it on, we can change the default to enabled later. If we do change the default to enabled, then we will want to delete the warning about TRIM not being supported by the underlying disk that you added at mount time as we would start getting a lot of them for all the non-SSD disks. Kirk McKusick