Engine does not handle O_SYNC flag support for tmpfs file system on Ubuntu
---------------------------------------------------------------------------
Key: CORE-5725
URL: http://tracker.firebirdsql.org/browse/CORE-5725
Project: Firebird Core
Issue Type: Improvement
Components: Engine
Affects Versions: 4.0 Alpha 1, 3.0.2, 3.0.0
Environment: Linux Ubuntu 16.04
Reporter: Sergey Mereutsa
Priority: Trivial
If volume is mounted as RAM-drive (tmpfs), FB3.0 does not allow create/resore
database on this volume.
/tmp mounted as tmpfs:
isql-fb -user SYSDBA -password masterkey
Use CONNECT or CREATE DATABASE to specify a database
SQL> CREATE DATABASE '/tmp/db.fdb';
Statement failed, SQLSTATE = HY000
operating system directive fstat failed
-Bad file descriptor
In the logs (when restore/create):
crytivo-store Fri Jan 12 19:25:44 2018
Database: /tmp/crytivoshop64t
I/O error during "re open() for SYNC/DIRECT" operation for file
"/tmp/crytivoshop64t"
Error while trying to open file
Invalid argument
crytivo-store Fri Jan 12 19:25:44 2018
Operating system call fstat failed. Error code 9
crytivo-store Fri Jan 12 19:25:44 2018
I/O error during "write" operation for file "/tmp/crytivoshop64t"
Error while trying to write to file
Bad file descriptor
Private report with additional details was send to Alex Peshkov, case is
reproduced.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://tracker.firebirdsql.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
Firebird-Devel mailing list, web interface at
https://lists.sourceforge.net/lists/listinfo/firebird-devel