[PVFS2-users] open with O_DIRECT, and open large files
kraken at wang-fu.org
Wed Apr 20 08:45:17 EDT 2005
Thus spake Alban Crequy:
> I am using pvfs2 1.0.1 with linux 18.104.22.168 on x86_64.
> Does PVFS2 support open(2) with O_DIRECT ? I get "ERROR: cannot open
> /mnt/pvfs2/smallfile (Invalid argument)" with O_DIRECT and it works
> without O_DIRECT.
No, PVFS2 does not support O_DIRECT.
> My software use:
> fd = open("/mnt/pvfs2/bigfile", O_RDWR);
> Does PVFS2 support large files?
Yes it does. As with any other filesystem, you must compile with the
proper flags (-D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE
-D_LARGEFILE64_SOURCE) and open with O_LARGEFILE.
Nathan Poznick <kraken at wang-fu.org>
The true way to gain much, is never to desire to gain too much. -
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Size: 189 bytes
Desc: Digital signature
Url : http://www.beowulf-underground.org/pipermail/pvfs2-users/attachments/20050420/939533b6/attachment.bin
More information about the PVFS2-users