Thread (2 messages) flat view 2 messages, 2 authors, 2011-03-14

Re: [PATCH v3] introduce sys_syncfs to sync a single file system

From: Indan Zupancic <hidden>
Date: 2011-03-14 01:38:01
Also in: linux-fsdevel, lkml

On Sat, March 12, 2011 20:22, Artem Bityutskiy wrote:
On Sat, 2011-03-12 at 02:33 +0100, Indan Zupancic wrote:
quoted
quoted
I think that you missed the point of the extension.

Ric
The point is clear, it's to synchronize a specific file system instead
of all of them.

But actually doing that from a program is harder than it looks, because
programs work with files, not file systems. To make this feature useful
the program needs meta information it can't easily get. That was my first
point.
I had a program, actually a set of programs, which test a file-system.
And this set of programs needed such a feature quite a lot, to sync the
FS which is being tested and nothing else - for both performance reasons
and to put more stress to the FS under testing. We used -o remount, rw
for this - but this forced us to run under root.
You could use a tiny setuid root helper binary that does the remount trick.
IOW, there are programs which take a mount point as an input parameter
and want do things with the whole FS, not only individual files.
And those probably need to mount or unmount the FS at one point or the
other, or can use the setuid helper binary.

If you want to add syncfs, at least ad it together with BSD so it's slightly
portable.

Greetings,

Indan
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help