Skip to content

Engine does not handle O_SYNC flag support for tmpfs file system on Ubuntu [CORE5725] #5991

Open
@firebird-automations

Description

@firebird-automations

Submitted by: Sergey Mereutsa (green)

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.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions