nfs delay causing broken files
Joe7
admin at kedvenc.hu
Fri Feb 6 13:32:59 PST 2009
So I tried, wrote a tenliner c script that copies the files
ouF = open(argv[2], O_WRONLY | O_CREAT | O_DIRECT | O_SYNC)
opening the target with that, but tested and the same problem occurs
am I missing something obvious?
Thanks for all your help,
Joe
Idézet (Rick Macklem <rmacklem at uoguelph.ca>):
>
>
> On Fri, 6 Feb 2009, Joe7 wrote:
>
>> Okay,
>>
>> So although it's likely that kernel hack would do it,
>> am I right that a wrapper script with open(...O_DIRECT) would do the job?
>>
>> Basicly i'm creating an file with imagemagick and wanna place that
>> on the nfs server.
>> So I assume if I create the file locally and copy over using a
>> little script that uses open(.. O_DIRECT), it would just work?
>> Application is PHP+imagemagick binary thus pretty high level
>> compared to this stuff, but please let me know if you agree!
>>
> Sounds like it might work. Good luck with it, rick
More information about the freebsd-fs
mailing list