chattr is an ext[23]-specific thing. reiserfs could certainly
support a similar thing if they have a few bits spare in the
inode.
> I have a suggestion: if D is set, but S isn't, no effect. If S is set,
> but D is unset, treat S as in the past. If S is set, and D is set,
> directory updates are synchronous like with S, but data updates are
> asynchronous in spite of S.
I don't think this would be needed until really proven necessary - for
data, fsync() should work for all filesystems.
There would be one benefit in splitting sync from datasync,
and that is for applications which do not write() their
data in large enough chunks.
When I fix the get_block thing, O_SYNC, `chattr +S' and `mount
-o sync' will provide good, fast synchronous write()s - the
fs will run a commit at the end of the write(). That's just fine as long
as the app is writing its data in goodly chunks. If it is is using 4k
or 8k chunks (eg: default stdio) then throughput will suffer. That
would be rather silly of it though.
-
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/