Hi,
I have mounted a CIFS share like this (cat /proc/mounts)://192.168.0.1/test2 
/var/spool/storage/Share cifs 
rw,relatime,unc=\\192.168.0.1\test2,username=sune,uid=123,forceuid,gid=123,forcegid,addr=192.168.0.1,file_mode=0770,dir_mode=0770,nobrl,rsize=16384,wsize=114688
 0 0
My CIFS options ( -o) are: 
username=sune,password=test,nounix,noserverino,uid=123,gid=123,nobrl,file_mode=0770,dir_mode=0770,port=1
 
1)I have a database file called data.db on the CIFS mounted share. I log on to 
sqlite3 from the client side and inserts a row into a table. I and this works 
fine. 
2)I then log on to the server side and remove the data.db file.
3)Again back on the client side I run an ls to make sure the file is really 
gone, and it is.
4)I run a similar insert as in step 1 and sqlite does not complain(!).
I have tried to add directio to my CIFS mount options but the behavior  remains 
the same.
If I run the tests on a filesystem other than CIFS, I get the expected:Error: 
disk I/O error
What can I do to make SQLite run safely on CIFS?
/Sune                                     
_______________________________________________
sqlite-users mailing list
sqlite-users@sqlite.org
http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users

Reply via email to