atom feed19 messages in org.freebsd.freebsd-hackersRe: devd based AUTOMOUNTER
FromSent OnAttachments
vermadenFeb 17, 2012 9:48 am 
mattFeb 17, 2012 11:22 am 
vermadenFeb 17, 2012 12:40 pm 
vermadenFeb 17, 2012 1:58 pm 
vermadenFeb 17, 2012 3:22 pm 
vermadenFeb 18, 2012 1:47 am 
Hans Petter SelaskyFeb 18, 2012 5:08 am 
Gleb KurtsouFeb 18, 2012 8:56 am 
Uffe JakobsenFeb 18, 2012 9:06 am 
Lars EngelsFeb 18, 2012 12:20 pm 
vermadenFeb 19, 2012 1:46 pm 
vermadenFeb 20, 2012 12:43 am 
Ivan KlymenkoFeb 20, 2012 1:48 am 
vermadenFeb 20, 2012 5:26 am 
Freddie CashFeb 20, 2012 8:38 am 
Fernando ApesteguíaFeb 20, 2012 10:31 am 
vermadenFeb 20, 2012 11:17 am 
vermadenFeb 21, 2012 1:04 am 
Uffe JakobsenFeb 22, 2012 2:57 pm 
Subject:Re: devd based AUTOMOUNTER
From:Ivan Klymenko (fid@ukr.net)
Date:Feb 20, 2012 1:48:44 am
List:org.freebsd.freebsd-hackers

В Mon, 20 Feb 2012 09:43:59 +0100 vermaden <verm@interia.pl> пишет:

Hi,

new version with new features (and BUGs ;p)

Added check if ntfsfix from sysutils/ntfsprogs is available, if Yes then try to fix the NTFS filesystem before mouting it.

Added GPL3 License ... just joking ;) ... added FreeBSD License to the file.

Added 'noatime' as a default mount option when possible.

Added TIMEOUT so when an 'orphan' STATE file lock remains, it will be deleted after a TIMEOUT.

Added /usr/local/etc/devd/automount.devd file instead of messing with the base system config at /etc/devd.conf.

Added config file to be used from /usr/local/etc/automount.conf file, possible options are (these are defaults): MNTPREFIX="/media" LOG="/var/log/automount.log" STATE="/var/run/automount.state" ENCODING="en_US.ISO8859-1" CODEPAGE="cp437" DATEFMT="%Y-%m-%d %H:%M:%S" USERUMOUNT="NO"

Mine config currently has only these: ENCODING="pl_PL.ISO8859-2" CODEPAGE="cp852" USERUMOUNT="YES"

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.

These newly mounted devices appear on NAUTILUS sidebar (only with /media prefix).

But THUNAR and PCMANFM does not do that, You know any other FMs that display mounted thumb drives/devices?

EXAMPLE: http://i.imgur.com/qdKdl.png

First BUG: (not fixed yet, but workaround already is working)

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=29895

Thanks!