A user has a database on an NFS share. The database is an SQLite fts one. After writing some data the database has a hissy fit and produces an error “unable to open database file” when trying to write. He has confirmed that the error doesn’t show up when the database is local.
So I tried to goggle and had a 30 minutes conversation with ChatGPT to have a Terminal command to get information about nfs. Is this correct?
You can look in terminal just using the mount command without options. It shows all currently mounted volumes.
Note: the SMB file type is smbfs not just smb!
I guess you used the code from another reply where just a block size is returned. See my code in the post from March, 10 where all fields are returned.
The output is partly shown in my 2nd reply here.
You can adjust the code to get the wanted field (f_fstypename), only.
I’m now using a way more simple solution: the main Valentina database has a lock file if it’s on a remove drive. In this case I use some different pragmas and I can check if ChatGPT is full of sugar or not.
I know that. However, the users do not understand why they should use my Pro version which is 4 times as expensive and needs a database server. The Valentina databases uses a lock file so that only one person can open the database at a time. The SQLite databases only have an fts table. If the database goes corrupt it can be re-created. Or you ask the Valentina guys why they haven’t made an fts search in 2 decades. I’d love to have that in Valentina.
What I was thinking was to add a Prefs file when the SQLite file is opened and delete it when it is closed. On the other(s) applications, when the user want to write, the application check the presence of the Prefs file: if it is Present (True): stop and report the Open operation cannot be done right now, etc.
No: I do not had the opportunity to implement that, sorry.
As long as only one user is allowed to access the database the app could do this automatically so the user wouldn’t know (we do this in one of our apps as the SQLite files are nearly always on a network).