From owner-freebsd-current@FreeBSD.ORG Mon Feb 20 09:49:13 2012 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 1785C106564A for ; Mon, 20 Feb 2012 09:49:13 +0000 (UTC) (envelope-from fidaj@ukr.net) Received: from fsm1.ukr.net (fsm1.ukr.net [195.214.192.120]) by mx1.freebsd.org (Postfix) with ESMTP id BE7548FC16 for ; Mon, 20 Feb 2012 09:49:12 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=ukr.net; s=fsm; h=Content-Transfer-Encoding:Content-Type:Mime-Version:References:In-Reply-To:Message-ID:Subject:Cc:To:From:Date; bh=6R2YKB35g3YxXyYRdDWy2kbxBVDpk9bEjzPKqKi3OWE=; b=XdF4tilzSQrlIjeNPxTakwmn1ssLmdakMRR8AqUf753YyWFci5M5dfUGX0UNiKOKxCI7UktVuW7TvL0hLGgxls3KQlDtcBFW/h55AJGm9hMlMu1AvQAKH1ZmdfNub+rHuwNgYIaS6N273Hp4bYLKCkCDSNggTL9jSVeyvLNcPAQ=; Received: from [178.137.138.140] (helo=nonamehost.) by fsm1.ukr.net with esmtpsa ID 1RzPro-000Hgk-Pa ; Mon, 20 Feb 2012 11:49:08 +0200 Date: Mon, 20 Feb 2012 11:49:07 +0200 From: Ivan Klymenko To: vermaden Message-ID: <20120220114907.59c76417@nonamehost.> In-Reply-To: References: <4F3EE186.4020801@gmail.com> <201202181409.08859.hselasky@c2i.net> X-Mailer: Claws Mail 3.8.0 (GTK+ 2.24.6; amd64-portbld-freebsd10.0) Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Cc: freebsd-hackers@freebsd.org, freebsd-current@freebsd.org, freebsd-stable@freebsd.org Subject: Re: devd based AUTOMOUNTER 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: Mon, 20 Feb 2012 09:49:13 -0000 =D0=92 Mon, 20 Feb 2012 09:43:59 +0100 vermaden =D0=BF=D0=B8=D1=88=D0=B5=D1=82: > Hi, >=20 > new version with new features (and BUGs ;p) >=20 > Added check if ntfsfix from sysutils/ntfsprogs is available, if Yes > then try to fix the NTFS filesystem before mouting it. >=20 > Added GPL3 License ... just joking ;) ... added FreeBSD License to > the file. >=20 > Added 'noatime' as a default mount option when possible. >=20 > Added TIMEOUT so when an 'orphan' STATE file lock remains, it will be > deleted after a TIMEOUT. >=20 > Added /usr/local/etc/devd/automount.devd file instead of messing with > the base system config at /etc/devd.conf. >=20 > Added config file to be used from /usr/local/etc/automount.conf file, > possible options are (these are defaults): MNTPREFIX=3D"/media" > LOG=3D"/var/log/automount.log" > STATE=3D"/var/run/automount.state" > ENCODING=3D"en_US.ISO8859-1" > CODEPAGE=3D"cp437" > DATEFMT=3D"%Y-%m-%d %H:%M:%S" > USERUMOUNT=3D"NO" >=20 > Mine config currently has only these: > ENCODING=3D"pl_PL.ISO8859-2" > CODEPAGE=3D"cp852" > USERUMOUNT=3D"YES" >=20 > The USERMOUNT otions if set to YES (default to NO) will 'chmod > +s /sbin/umount', so You can click the ^ button on the devices list > in NAUTILUS. >=20 > These newly mounted devices appear on NAUTILUS sidebar (only > with /media prefix). >=20 > But THUNAR and PCMANFM does not do that, You know any other FMs that > display mounted thumb drives/devices? >=20 > EXAMPLE: http://i.imgur.com/qdKdl.png >=20 > First BUG: (not fixed yet, but workaround already is working) >=20 > TEST/BUG/CASE: > Plug in FAT32 and NTFS drives at the same time, when FAT32 device > will be detected first, it will get mounted and the NTFS drive will > be mounted TWICE, so I added __check_already_mounted function to > check if it is not already mounted. Thank you so much! Could you update, please first post in the forum? http://forums.freebsd.org/showthread.php?t=3D29895 Thanks!