Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 7 Feb 2000 11:40:43 -0800
From:      Alfred Perlstein <bright@wintelcom.net>
To:        hackers@freebsd.org
Subject:   Syncing a vector of fileoffsets and lengths?
Message-ID:  <20000207114042.E25520@fw.wintelcom.net>

next in thread | raw e-mail | index | archive | help
Is it possible to submit several offsets of a file to be synced
rather than calling fsync or mmap'ing over the file and calling
msync()?

The only way I can think of doing this is queuing write requests
backed by a O_FSYNC fd to an aiod.

Even then the desired result isn't really achived as instead of
all the buffers being simultaniously queued for immediate IO
the aiod will stall on each buffer.

Is there a better way to submit multiple buffers for immediate
sync without syncing the entire file?

It seems that msync with MS_ASYNC would work (a bit kludgy), but
it's not implemented according to the manpage.

thanks,
-- 
-Alfred Perlstein - [bright@wintelcom.net|alfred@freebsd.org]


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-hackers" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20000207114042.E25520>