Re: 9.0-STABLE: Can't umount umass device

2012-07-04 Thread Vincent Hoffman
On 04/07/2012 14:17, George Mitchell wrote:
> On 07/04/12 00:42, Ian Lepore wrote:
>> 

>>
>> Are you running a desktop environment that automatically launches
>> gam_server to watch for changes on mounted filesystems?  If so, the fix
>> is to edit /usr/local/etc/gamin/gaminrc and tell it to use polling
>> rather than kernel notification on the mount points you use for
>> removable media.
>>
>> -- Ian
>>
>> ___
>> freebsd-stable@freebsd.org mailing list
>> http://lists.freebsd.org/mailman/listinfo/freebsd-stable
>> To unsubscribe, send any mail to
>> "freebsd-stable-unsubscr...@freebsd.org"
>
> Thanks, this was the problem.  By the way, here between these two rows
> of equals signs is the total amount of documentation that the gamin
> port/package installed on my system:
> ==
> ==
> Google showed me what to put in my /usr/local/etc/gamin/gaminrc file:
>
> poll /flash
>
> I appreciate the help! -- George
To be fair the pkg-message for the port says

jhary@ostracod $ cd
(18:35:30 <~>) 0
jhary@ostracod $ pkg_info -D gamin-0.1.10_4
Information for gamin-0.1.10_4:

Install notice:
===

Gamin will only provide realtime notification of changes for at most n
files,
where n is the minimum value between (kern.maxfiles * 0.7) and
(kern.maxfilesperproc - 200). Beyond that limit, files will be polled.

If you often open several large folders with Nautilus, you might want to
increase the kern.maxfiles tunable (you do not need to set
kern.maxfilesperproc, since it is computed at boot time from kern.maxfiles).

For a typical desktop, add the following line to /boot/loader.conf, then
reboot the system:

kern.maxfiles="25000"

The behavior of gamin can be controlled via the various gaminrc files.
See http://www.gnome.org/~veillard/gamin/config.html on how to create
these files.  In particular, if you find gam_server is taking up too much
CPU time polling for changes, something like the following may help
in one of the gaminrc files:

# reduce polling frequency to once per 10 seconds
# for UFS file systems in order to lower CPU load
fsset ufs poll 10

===

The lack of a manpage is sadly down to gamin though.


Vince

> ___
> freebsd-stable@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-stable
> To unsubscribe, send any mail to "freebsd-stable-unsubscr...@freebsd.org"


___
freebsd-stable@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to "freebsd-stable-unsubscr...@freebsd.org"


Re: 9.0-STABLE: Can't umount umass device

2012-07-04 Thread George Mitchell

On 07/04/12 00:42, Ian Lepore wrote:

On Tue, 2012-07-03 at 20:42 -0400, George Mitchell wrote:

uname -a:
FreeBSD wonderland.m5p.com 9.0-STABLE FreeBSD 9.0-STABLE #9: Sun Jun  3
10:01:09 EDT 2012
geo...@wonderland.m5p.com:/usr/obj/usr/src/sys/WONDERLAND  amd64

dmesg | grep umass:
umass0:  on usbus2
umass0:  SCSI over Bulk-Only; quirks = 0x4000
umass0:3:0:-1: Attached to scbus3
(probe0:umass-sim0:0:0:0): TEST UNIT READY. CDB: 0 0 0 0 0 0
(probe0:umass-sim0:0:0:0): CAM status: SCSI Status Error
(probe0:umass-sim0:0:0:0): SCSI status: Check Condition
(probe0:umass-sim0:0:0:0): SCSI sense: UNIT ATTENTION asc:28,0 (Not
ready to ready change, medium may have changed)
da0 at umass-sim0 bus 0 scbus3 target 0 lun 0

# mount -t msdosfs /dev/da0s1 /flash
# umount /flash
umount: unmount of /flash failed: Device busy

-- George Mitchell


Are you running a desktop environment that automatically launches
gam_server to watch for changes on mounted filesystems?  If so, the fix
is to edit /usr/local/etc/gamin/gaminrc and tell it to use polling
rather than kernel notification on the mount points you use for
removable media.

-- Ian

___
freebsd-stable@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to "freebsd-stable-unsubscr...@freebsd.org"


Thanks, this was the problem.  By the way, here between these two rows
of equals signs is the total amount of documentation that the gamin
port/package installed on my system:
==
==
Google showed me what to put in my /usr/local/etc/gamin/gaminrc file:

poll /flash

I appreciate the help! -- George
___
freebsd-stable@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to "freebsd-stable-unsubscr...@freebsd.org"


Re: 9.0-STABLE: Can't umount umass device

2012-07-04 Thread George Mitchell

On 07/04/12 00:14, Jason Hellenthal wrote:


fstat /flash ?


# fstat /flash
USER CMD  PID   FD MOUNT  INUM MODE SZ|DV R/W NAME
george   gam_server  1654 5730 /flash   131072 drwxr-xr-x   32768  r  /flash
george   gam_server  1654 5731 -131072 -rwxr-xr-x 512  r  /flash

Thanks for the tip,  But, AARGH!  Everything in the world seems to
depend on this gamin thing.  What's the recommended course of
action?-- George



On Tue, Jul 03, 2012 at 08:42:55PM -0400, George Mitchell wrote:

uname -a:
FreeBSD wonderland.m5p.com 9.0-STABLE FreeBSD 9.0-STABLE #9: Sun Jun  3
10:01:09 EDT 2012
geo...@wonderland.m5p.com:/usr/obj/usr/src/sys/WONDERLAND  amd64

dmesg | grep umass:
umass0:  on usbus2
umass0:  SCSI over Bulk-Only; quirks = 0x4000
umass0:3:0:-1: Attached to scbus3
(probe0:umass-sim0:0:0:0): TEST UNIT READY. CDB: 0 0 0 0 0 0
(probe0:umass-sim0:0:0:0): CAM status: SCSI Status Error
(probe0:umass-sim0:0:0:0): SCSI status: Check Condition
(probe0:umass-sim0:0:0:0): SCSI sense: UNIT ATTENTION asc:28,0 (Not
ready to ready change, medium may have changed)
da0 at umass-sim0 bus 0 scbus3 target 0 lun 0

# mount -t msdosfs /dev/da0s1 /flash
# umount /flash
umount: unmount of /flash failed: Device busy

-- George Mitchell
___
freebsd-stable@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to "freebsd-stable-unsubscr...@freebsd.org"




___
freebsd-stable@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to "freebsd-stable-unsubscr...@freebsd.org"


Re: 9.0-STABLE: Can't umount umass device

2012-07-03 Thread Ian Lepore
On Tue, 2012-07-03 at 20:42 -0400, George Mitchell wrote:
> uname -a:
> FreeBSD wonderland.m5p.com 9.0-STABLE FreeBSD 9.0-STABLE #9: Sun Jun  3 
> 10:01:09 EDT 2012 
> geo...@wonderland.m5p.com:/usr/obj/usr/src/sys/WONDERLAND  amd64
> 
> dmesg | grep umass:
> umass0:  on usbus2
> umass0:  SCSI over Bulk-Only; quirks = 0x4000
> umass0:3:0:-1: Attached to scbus3
> (probe0:umass-sim0:0:0:0): TEST UNIT READY. CDB: 0 0 0 0 0 0
> (probe0:umass-sim0:0:0:0): CAM status: SCSI Status Error
> (probe0:umass-sim0:0:0:0): SCSI status: Check Condition
> (probe0:umass-sim0:0:0:0): SCSI sense: UNIT ATTENTION asc:28,0 (Not 
> ready to ready change, medium may have changed)
> da0 at umass-sim0 bus 0 scbus3 target 0 lun 0
> 
> # mount -t msdosfs /dev/da0s1 /flash
> # umount /flash
> umount: unmount of /flash failed: Device busy
> 
> -- George Mitchell

Are you running a desktop environment that automatically launches
gam_server to watch for changes on mounted filesystems?  If so, the fix
is to edit /usr/local/etc/gamin/gaminrc and tell it to use polling
rather than kernel notification on the mount points you use for
removable media.

-- Ian

___
freebsd-stable@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to "freebsd-stable-unsubscr...@freebsd.org"


Re: 9.0-STABLE: Can't umount umass device

2012-07-03 Thread Jason Hellenthal

fstat /flash ?

On Tue, Jul 03, 2012 at 08:42:55PM -0400, George Mitchell wrote:
> uname -a:
> FreeBSD wonderland.m5p.com 9.0-STABLE FreeBSD 9.0-STABLE #9: Sun Jun  3 
> 10:01:09 EDT 2012 
> geo...@wonderland.m5p.com:/usr/obj/usr/src/sys/WONDERLAND  amd64
> 
> dmesg | grep umass:
> umass0:  on usbus2
> umass0:  SCSI over Bulk-Only; quirks = 0x4000
> umass0:3:0:-1: Attached to scbus3
> (probe0:umass-sim0:0:0:0): TEST UNIT READY. CDB: 0 0 0 0 0 0
> (probe0:umass-sim0:0:0:0): CAM status: SCSI Status Error
> (probe0:umass-sim0:0:0:0): SCSI status: Check Condition
> (probe0:umass-sim0:0:0:0): SCSI sense: UNIT ATTENTION asc:28,0 (Not 
> ready to ready change, medium may have changed)
> da0 at umass-sim0 bus 0 scbus3 target 0 lun 0
> 
> # mount -t msdosfs /dev/da0s1 /flash
> # umount /flash
> umount: unmount of /flash failed: Device busy
> 
> -- George Mitchell
> ___
> freebsd-stable@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-stable
> To unsubscribe, send any mail to "freebsd-stable-unsubscr...@freebsd.org"

-- 

 - (2^(N-1))
___
freebsd-stable@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to "freebsd-stable-unsubscr...@freebsd.org"


9.0-STABLE: Can't umount umass device

2012-07-03 Thread George Mitchell

uname -a:
FreeBSD wonderland.m5p.com 9.0-STABLE FreeBSD 9.0-STABLE #9: Sun Jun  3 
10:01:09 EDT 2012 
geo...@wonderland.m5p.com:/usr/obj/usr/src/sys/WONDERLAND  amd64


dmesg | grep umass:
umass0:  on usbus2
umass0:  SCSI over Bulk-Only; quirks = 0x4000
umass0:3:0:-1: Attached to scbus3
(probe0:umass-sim0:0:0:0): TEST UNIT READY. CDB: 0 0 0 0 0 0
(probe0:umass-sim0:0:0:0): CAM status: SCSI Status Error
(probe0:umass-sim0:0:0:0): SCSI status: Check Condition
(probe0:umass-sim0:0:0:0): SCSI sense: UNIT ATTENTION asc:28,0 (Not 
ready to ready change, medium may have changed)

da0 at umass-sim0 bus 0 scbus3 target 0 lun 0

# mount -t msdosfs /dev/da0s1 /flash
# umount /flash
umount: unmount of /flash failed: Device busy

-- George Mitchell
___
freebsd-stable@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to "freebsd-stable-unsubscr...@freebsd.org"