Hi,
My homedir is inside an ocfs2. When i use mysql client it should create
a .mysql_history file with the commands i've inputted so far.
The file is created but no data is recorded inside. If i do a simlink outside
ocfs everything is ok..
I've narrowed it down to the following code:
...
open("/home/rv/.mysql_history", O_RDWR|O_CREAT|O_TRUNC, 0600) = 3
ftruncate(3, 13) = 0
mmap(NULL, 13, PROT_READ|PROT_WRITE, MAP_SHARED, 3, 0) = -1 EINVAL (Invalid
argument)
close(3) = 0
write(1, "Bye\n", 4Bye
) = 4
exit_group(0) = ?
Process 10776 detached
I'm using 2.6.9-48.ELxenU with ocfs2-tools-1.2.4-1 and
ocfs2-2.6.9-48.ELxen-1.2.5-0.local.
Any info on this?
Thanks
Nuno Fernandes
Yes, shared writeable mmap is not yet supported on ocfs2. We are close to nailing down this feature. Hopefully will make it in time for the next mainline kernel check-in window (2.6.23). If so, will be available with ocfs2 1.4. Nuno Fernandes wrote:> Hi, > > My homedir is inside an ocfs2. When i use mysql client it should create > a .mysql_history file with the commands i've inputted so far. > > The file is created but no data is recorded inside. If i do a simlink outside > ocfs everything is ok.. > > I've narrowed it down to the following code: > > ... > open("/home/rv/.mysql_history", O_RDWR|O_CREAT|O_TRUNC, 0600) = 3 > ftruncate(3, 13) = 0 > mmap(NULL, 13, PROT_READ|PROT_WRITE, MAP_SHARED, 3, 0) = -1 EINVAL (Invalid > argument) > close(3) = 0 > write(1, "Bye\n", 4Bye > ) = 4 > exit_group(0) = ? > Process 10776 detached > > I'm using 2.6.9-48.ELxenU with ocfs2-tools-1.2.4-1 and > ocfs2-2.6.9-48.ELxen-1.2.5-0.local. > > Any info on this? > Thanks > Nuno Fernandes > > _______________________________________________ > Ocfs2-users mailing list > Ocfs2-users@oss.oracle.com > http://oss.oracle.com/mailman/listinfo/ocfs2-users >
Shared mmap is not supported, we had some discussions on that, but it is
just not there yet. This also affects bdb files.
Gruss
Bernd
-----Original Message-----
From: ocfs2-users-bounces@oss.oracle.com
[mailto:ocfs2-users-bounces@oss.oracle.com] On Behalf Of Nuno Fernandes
Sent: Wednesday, May 16, 2007 5:17 PM
To: Ocfs2-users@oss.oracle.com
Subject: [Ocfs2-users] MMAP shared in OCFS2 filesystem
Hi,
My homedir is inside an ocfs2. When i use mysql client it should create
a .mysql_history file with the commands i've inputted so far.
The file is created but no data is recorded inside. If i do a simlink
outside ocfs everything is ok..
I've narrowed it down to the following code:
...
open("/home/rv/.mysql_history", O_RDWR|O_CREAT|O_TRUNC, 0600) = 3
ftruncate(3, 13) = 0
mmap(NULL, 13, PROT_READ|PROT_WRITE, MAP_SHARED, 3, 0) = -1 EINVAL
(Invalid
argument)
close(3) = 0
write(1, "Bye\n", 4Bye
) = 4
exit_group(0) = ?
Process 10776 detached
I'm using 2.6.9-48.ELxenU with ocfs2-tools-1.2.4-1 and
ocfs2-2.6.9-48.ELxen-1.2.5-0.local.
Any info on this?
Thanks
Nuno Fernandes
SEEBURGER AG
Headquarters:
Edisonstraße 1
D-75015 Bretten
Tel.: 0 72 52/96-0
Fax: 0 72 52/96-2222
Internet: http://www.seeburger.de
e-mail: info@seeburger.de
Vorstand:
Bernd Seeburger, Axel Haas, Michael Kleeberg
Vorsitzender des Aufsichtsrats:
Dr. Franz Scherer
Handelsregister:
HRB 240708 Mannheim