From owner-freebsd-stable@FreeBSD.ORG Mon Sep 25 09:25:54 2006 Return-Path: X-Original-To: freebsd-stable@freebsd.org Delivered-To: freebsd-stable@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 48A5616A417 for ; Mon, 25 Sep 2006 09:25:54 +0000 (UTC) (envelope-from freebsd-stable@m.gmane.org) Received: from ciao.gmane.org (main.gmane.org [80.91.229.2]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9671943D46 for ; Mon, 25 Sep 2006 09:25:53 +0000 (GMT) (envelope-from freebsd-stable@m.gmane.org) Received: from list by ciao.gmane.org with local (Exim 4.43) id 1GRmiU-000893-VP for freebsd-stable@freebsd.org; Mon, 25 Sep 2006 11:25:34 +0200 Received: from lara.cc.fer.hr ([161.53.72.113]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 25 Sep 2006 11:25:34 +0200 Received: from ivoras by lara.cc.fer.hr with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 25 Sep 2006 11:25:34 +0200 X-Injected-Via-Gmane: http://gmane.org/ To: freebsd-stable@freebsd.org From: Ivan Voras Date: Mon, 25 Sep 2006 11:25:05 +0200 Lines: 16 Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Complaints-To: usenet@sea.gmane.org X-Gmane-NNTP-Posting-Host: lara.cc.fer.hr User-Agent: Thunderbird 1.5.0.4 (X11/20060625) Sender: news Subject: Automounter flags for pcfs? X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 25 Sep 2006 09:25:54 -0000 The goal is to have a USB flash drive mounted via automounter in a way that it auto-umounts after a while so I don't crash the system by pluggin it out wile mounted. My amd.map looks like this: /defaults type:=host;fs:=${autodir}/${rhost}/host;rhost:=${key}; * opts:=rw,grpid,resvport,vers=3,proto=udp,nosuid,nodev flash-s1 type:=pcfs;dev:=/dev/da0s1;fs:=${autodir}/flash-s1;opts:=rw,longnames,-m664,-M777; The problem is that "opts" are not passed to mount_msdosfs which results in all files having execute bits set, etc. Using "msdosfs" instead of "pcfs" makes amd fail with "unknown file system". So, how to do this? I'll accept anything that gets the proper flags to mount_msdosfs.