Chris McKeever
2004-Oct-03 18:26 UTC
[Samba] commit changes to removable media + error copying
SAMBA 2.2.8A
I am automounting a 6-in-1 smartmedia reader such as:
/etc/auto..master
/mnt/auto /etc/auto.misc --timeout=1
/etc/auto.misc
carda -fstype=msdos,rw,nosuid,nodev,umask=000 :/dev/sda1
I am also making that a samba share:
[card_a]
comment = Removable Card Media
path = /mnt/auto/carda
browseable = yes
public = no
read only = no
oplocks = no
level2 oplocks = no
force directory mode = 0777
create mask = 777
force group = domain-users
When browsing to the directory, it will automount and display the
files. I can update/delete/change the files. However, in order for
the changes to commit, I need to browse away from share for the
timeout period (1 second) or leave the card in the reader for about a
minute. Is there a way to have the changes commit so it could be more
transparent to the end user??
also - if I try to copy the file (control-c/control-v) I receive the
error message:
"cannot copy <FILENAME>: invalid file handle"
The only log files I see are:
[2004/10/03 13:23:50, 0] smbd/fileio.c:seek_file(42)
seek_file: (64mb.mp3) sys_lseek failed. Error was Invalid argument
but it doesnt necessarily coincide with the times I try to do the cut-n-paste
however, if I copy between two different cards in the reader (CF->SD)
then it works fine
Thanks in advance
Chris
Chris McKeever
2004-Oct-04 16:23 UTC
[Samba] Re: commit changes to removable media + error copying
I have found this: http://uranus.it.swin.edu.au/~jn/linux/automount.htm but still in the dark to resolving this -- thanks On Sun, 3 Oct 2004 13:26:46 -0500, Chris McKeever <techjedi@gmail.com> wrote:> SAMBA 2.2.8A > > I am automounting a 6-in-1 smartmedia reader such as: > > /etc/auto..master > /mnt/auto /etc/auto.misc --timeout=1 > > /etc/auto.misc > carda -fstype=msdos,rw,nosuid,nodev,umask=000 :/dev/sda1 > > I am also making that a samba share: > > [card_a] > comment = Removable Card Media > path = /mnt/auto/carda > browseable = yes > public = no > read only = no > oplocks = no > level2 oplocks = no > force directory mode = 0777 > create mask = 777 > force group = domain-users > > When browsing to the directory, it will automount and display the > files. I can update/delete/change the files. However, in order for > the changes to commit, I need to browse away from share for the > timeout period (1 second) or leave the card in the reader for about a > minute. Is there a way to have the changes commit so it could be more > transparent to the end user?? > > also - if I try to copy the file (control-c/control-v) I receive the > error message: > > "cannot copy <FILENAME>: invalid file handle" > > The only log files I see are: > [2004/10/03 13:23:50, 0] smbd/fileio.c:seek_file(42) > seek_file: (64mb.mp3) sys_lseek failed. Error was Invalid argument > > but it doesnt necessarily coincide with the times I try to do the cut-n-paste > > however, if I copy between two different cards in the reader (CF->SD) > then it works fine > > Thanks in advance > > Chris >
Chris McKeever
2004-Oct-04 21:12 UTC
[Samba] Re: commit changes to removable media + error copying
On Sun, 3 Oct 2004 13:26:46 -0500, Chris McKeever <techjedi@gmail.com> wrote:> SAMBA 2.2.8A > > I am automounting a 6-in-1 smartmedia reader such as: > > /etc/auto..master > /mnt/auto /etc/auto.misc --timeout=1 > > /etc/auto.misc > carda -fstype=msdos,rw,nosuid,nodev,umask=000 :/dev/sda1 > > I am also making that a samba share: > > [card_a] > comment = Removable Card Media > path = /mnt/auto/carda > browseable = yes > public = no > read only = no > oplocks = no > level2 oplocks = no > force directory mode = 0777 > create mask = 777 > force group = domain-users > > When browsing to the directory, it will automount and display the > files. I can update/delete/change the files. However, in order for > the changes to commit, I need to browse away from share for the > timeout period (1 second) or leave the card in the reader for about a > minute. Is there a way to have the changes commit so it could be more > transparent to the end user?? > > also - if I try to copy the file (control-c/control-v) I receive the > error message: > > "cannot copy <FILENAME>: invalid file handle"this was an issue withthe cards being formatted msdos rather than vfat, that fixed that problem - now if I can figure out how to commit the changes to the mounted system quicker --> > The only log files I see are: > [2004/10/03 13:23:50, 0] smbd/fileio.c:seek_file(42) > seek_file: (64mb.mp3) sys_lseek failed. Error was Invalid argument > > but it doesnt necessarily coincide with the times I try to do the cut-n-paste > > however, if I copy between two different cards in the reader (CF->SD) > then it works fine > > Thanks in advance > > Chris >
Chris McKeever
2004-Oct-04 23:01 UTC
[Samba] commit changes to removable media + error copying
On Mon, 04 Oct 2004 23:26:59 +0200, Holger Krull <holger.krull@gmx.de> wrote:> > > minute. Is there a way to have the changes commit so it could be more > > transparent to the end user?? > > > > I don't know exactly, but maybe this is the usual bdflush write behind > time, if you are on linux. > Parameters may vary with kernel. On 2.4 i use > echo 40 2048 0 0 100 600 60 20 > /proc/sys/vm/bdflush > to reduce write cache age time to 6 seconds. >Thanks Holger - gave it a shot still wont commit the changes until I close out the explorer window or move off the share -- just wondering how people handle this with samba shared floppies and other removable media....so close, yet not thanks