Hello,
Lately I'm moving files back and forth between a Windows PC and an OLPC test board via a USB memory in VFAT. The OLPC test board runs official OLPC kernel (build 94) that is a modified Linux. Here I have a problem to unmount the file system after Squeak opens something on the file system.
A typical workflow is:
* There are bare minimum stuff running on the board. On X, xterm and twm and that is it.
* mount a USB memory on the board:
mount -t vfat /dev/sdb1 /mnt
* launch Squeak. The binary of VM and image are on a different file system than /dev/sdb1.
* open a FileList, and navigate to /mnt.
* close the FileList. Do 'purge undo records' (just for the heck of it) and do fullGC couples of times.
* go to xterm while Squeak is running and try:
umount /mnt
I get "device is busy" error.
* close Squeak and try unmount again. I can unmount the file system this time.
The VM is 3.9-8 that I compiled from the repository. Is this something to do with the Linux VFAT driver, or a problem with the Squeak VM?
-- Yoshiki
Being a unix system does it have lsof available?
If so that will certainly tell you what file handles are open by the squeak vm.
On 13-Oct-06, at 1:02 PM, Yoshiki Ohshima wrote:
Hello,
Lately I'm moving files back and forth between a Windows PC and an OLPC test board via a USB memory in VFAT. The OLPC test board runs official OLPC kernel (build 94) that is a modified Linux. Here I have a problem to unmount the file system after Squeak opens something on the file system.
A typical workflow is:
There are bare minimum stuff running on the board. On X, xterm and twm and that is it.
mount a USB memory on the board:
mount -t vfat /dev/sdb1 /mnt
launch Squeak. The binary of VM and image are on a different file system than /dev/sdb1.
open a FileList, and navigate to /mnt.
close the FileList. Do 'purge undo records' (just for the heck of it) and do fullGC couples of times.
go to xterm while Squeak is running and try:
umount /mnt
I get "device is busy" error.
close Squeak and try unmount again. I can unmount the file system this time.
The VM is 3.9-8 that I compiled from the repository. Is this something to do with the Linux VFAT driver, or a problem with the Squeak VM?
-- Yoshiki
-- ======================================================================== === John M. McIntosh johnmci@smalltalkconsulting.com Corporate Smalltalk Consulting Ltd. http://www.smalltalkconsulting.com ======================================================================== ===
Assuming that you know the process id of the squeak vm, the currently open file handles are listed in the /proc/<squeakVmPid>/fd directory.
Aside from figuring out what files are currently open, this is also useful if you ever have a VM that is locked up on a blocking read operation. You can just echo some data to /proc/<squeakVmPid>/<someFd>, and the Squeak image will wake up and come back to life.
Dave
On Fri, Oct 13, 2006 at 01:18:28PM -0700, John M McIntosh wrote:
Being a unix system does it have lsof available?
If so that will certainly tell you what file handles are open by the squeak vm.
On 13-Oct-06, at 1:02 PM, Yoshiki Ohshima wrote:
Hello,
Lately I'm moving files back and forth between a Windows PC and an OLPC test board via a USB memory in VFAT. The OLPC test board runs official OLPC kernel (build 94) that is a modified Linux. Here I have a problem to unmount the file system after Squeak opens something on the file system.
A typical workflow is:
There are bare minimum stuff running on the board. On X, xterm and twm and that is it.
mount a USB memory on the board:
mount -t vfat /dev/sdb1 /mnt
launch Squeak. The binary of VM and image are on a different file system than /dev/sdb1.
open a FileList, and navigate to /mnt.
close the FileList. Do 'purge undo records' (just for the heck of it) and do fullGC couples of times.
go to xterm while Squeak is running and try:
umount /mnt
I get "device is busy" error.
close Squeak and try unmount again. I can unmount the file system this time.
The VM is 3.9-8 that I compiled from the repository. Is this something to do with the Linux VFAT driver, or a problem with the Squeak VM?
-- Yoshiki
--
=== John M. McIntosh johnmci@smalltalkconsulting.com Corporate Smalltalk Consulting Ltd. http://www.smalltalkconsulting.com ======================================================================== ===
etoys-dev@lists.squeakfoundation.org