From owner-svn-src-all@freebsd.org Tue Sep 20 03:43:43 2016 Return-Path: Delivered-To: svn-src-all@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id E290CBDF1B9; Tue, 20 Sep 2016 03:43:43 +0000 (UTC) (envelope-from etnapierala@gmail.com) Received: from mail-wm0-x242.google.com (mail-wm0-x242.google.com [IPv6:2a00:1450:400c:c09::242]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 74BEE3A4; Tue, 20 Sep 2016 03:43:43 +0000 (UTC) (envelope-from etnapierala@gmail.com) Received: by mail-wm0-x242.google.com with SMTP id w84so1104878wmg.0; Mon, 19 Sep 2016 20:43:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:date:from:to:cc:subject:message-id:mail-followup-to :references:mime-version:content-disposition:in-reply-to:user-agent; bh=EikpAMcy8pMIfNlWFC6b5FnaI3dUMQDRnEnHMKEtz2k=; b=VfX1h5KgDzdnVBQQmSWh2KDwg1a8CKOxtZyfQrTshVQl1R5vd4E70xrDlX7V0HhTuf nKYysoqd0ps65VVu1bbpPEHzp6CiYV7F1D6+OeVuCSC6Y8A4up5R8yVOPufyz5w/EgiE PGvXBPYCHtF4sWY3taWYJG+NUjjW6fR7Ta+o1UJ5Z56HMX1wbovTIahVIHLnZTs9ra1H bq9CqeZCZj7ZVKI6NpIVZPxUDquD24bQBJIrA+3WMz/5Rlr13hstpAI9GRMPEaiQVtCq IFVdd8AiwTSH8z7j/C6Lu5aPiX/EO/fZh0e7IVjxXasDawiX+1jJZDhg8mz2E8jPuaQw +9Vg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:sender:date:from:to:cc:subject:message-id :mail-followup-to:references:mime-version:content-disposition :in-reply-to:user-agent; bh=EikpAMcy8pMIfNlWFC6b5FnaI3dUMQDRnEnHMKEtz2k=; b=U0K2mMM5ZxCGFqeaLuGSI8TsEYyQhd8P8inJQNXQVWTcBjmy7+B07jhBl0apbPAYIt ogtsrStIGDGFuCpabIbMjO82PDBrbSHO37q0eLUJJsxJArY3/gl1nNPXI30Nj57Bhksb ZIJr1579vpNVpS1YcaZr1OErZGqbko9T1Bt/jf7ckZp0+0fVhnXEIbjnYN+31MThFPL1 aqAD+8+kQYoB0AXMxlEqxBbIGFNIYSNe4QQazMcjLPxbxMUv0eq6RVk/jNoDFAgzx83H r3++EU7Blp+0oj//KSKkS8mLpWGWZPQW+fNLE+jymZ/fTl61MQy8QPKma+IBjQ5GSFjo Jxuw== X-Gm-Message-State: AE9vXwOVBm14y1qAJbBg6OW9Sh4CiZupeJ4nsCSCFf29j5zSgrcyPLEzWo79dHwncDCSbw== X-Received: by 10.194.26.69 with SMTP id j5mr18678626wjg.209.1474343021436; Mon, 19 Sep 2016 20:43:41 -0700 (PDT) Received: from brick (etn137.neoplus.adsl.tpnet.pl. [83.20.159.137]) by smtp.gmail.com with ESMTPSA id c134sm25045857wme.5.2016.09.19.20.43.40 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 19 Sep 2016 20:43:40 -0700 (PDT) Sender: =?UTF-8?Q?Edward_Tomasz_Napiera=C5=82a?= Date: Tue, 20 Sep 2016 05:43:37 +0200 From: Edward Tomasz Napierala To: Ronald Klop Cc: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: Re: svn commit: r305968 - head/etc/autofs Message-ID: <20160920034337.GA6180@brick> Mail-Followup-To: Ronald Klop , src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org References: <201609190851.u8J8pRDD068198@repo.freebsd.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.6.1 (2016-04-27) X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 20 Sep 2016 03:43:44 -0000 Mounting removable media async improves performance and reduces wear. And AFAIK that's what most Linux distros used to do. On 0919T2032, Ronald Klop wrote: > Hi, > > Your commit message says in words exactly what the diff says in code. > Would you like to elaborate on why the change is made? I'm curious > because this could cause severe damage to the filesystem on unclean eject > of the media. > > Regards, > Ronald. > > > On Mon, 19 Sep 2016 10:51:27 +0200, Edward Tomasz Napierala > wrote: > > > Author: trasz > > Date: Mon Sep 19 08:51:27 2016 > > New Revision: 305968 > > URL: https://svnweb.freebsd.org/changeset/base/305968 > > > > Log: > > Make autofs use the "async" flag for msdosfs and ufs filesystems > > mounted > > on /media. > > MFC after: 1 month > > > > Modified: > > head/etc/autofs/special_media > > > > Modified: head/etc/autofs/special_media > > ============================================================================== > > --- head/etc/autofs/special_media Mon Sep 19 07:47:56 2016 (r305967) > > +++ head/etc/autofs/special_media Mon Sep 19 08:51:27 2016 (r305968) > > @@ -46,6 +46,8 @@ print_map_entry() { > > "Cannot mount ${_fstype} formatted device /dev/${_p}: Install > > sysutils/fusefs-ntfs first" > > exit 1 > > fi > > + elif [ "${_fstype}" = "msdosfs" -o "${_fstype}" = "ufs" ]; then > > + echo "-fstype=${_fstype},nosuid,async :/dev/${_p}" > > else > > echo "-fstype=${_fstype},nosuid :/dev/${_p}" > > fi > > _______________________________________________ > > svn-src-all@freebsd.org mailing list > > https://lists.freebsd.org/mailman/listinfo/svn-src-all > > To unsubscribe, send any mail to "svn-src-all-unsubscribe@freebsd.org"