Issue Details (XML | Word | Printable)

Key: CORE-5725
Type: Improvement Improvement
Status: Open Open
Priority: Trivial Trivial
Assignee: Alexander Peshkov
Reporter: Sergey Mereutsa
Votes: 0
Watchers: 2
Operations

If you were logged in you would be able to see more operations.
Firebird Core

Engine does not handle O_SYNC flag support for tmpfs file system on Ubuntu

Created: 25/Jan/18 10:43 AM   Updated: 25/Jan/18 10:52 AM
Component/s: Engine
Affects Version/s: 3.0.0, 3.0.2, 4.0 Alpha 1
Fix Version/s: None

Environment: Linux Ubuntu 16.04

QA Status: No test


 Description  « Hide
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.


 All   Comments   Change History   Subversion Commits      Sort Order: Ascending order - Click to sort in descending order
There are no comments yet on this issue.