[openbeos] Re: sync daemon?

  • From: "André Braga" <meianoite@xxxxxxxxx>
  • To: openbeos@xxxxxxxxxxxxx
  • Date: Thu, 18 Jan 2007 14:50:35 -0200

On 1/18/07, Bruno Albuquerque <bga@xxxxxxxxxxxxx> wrote:
If the FS itself provides a thread for syncing data (which is weirs as
it should be handled by the VFS in my humble opinion, than it fits with
my definition of how it should be done.

No, no, no. Not the VFS. Either you take in account the particulars of
every storage medium (like flash memory) and end up with a VERY
swollen VFS layer, or you put the burden on the file system itself,
which should be tailored for the medium in question.

Cases in point: JFFS, NFS etc. Syncing and not taking into account the
characteristics of the medium would a) wear out flash memory very
quickly; b) generate a trickle of network traffic which sometimes is
just not acceptable.

Not to mention locking issues and atomicity when dealing with
networked filesystems...

IMEHO the VFS layer should be thin and flexible, and the burden of
gory details should be on the FS layer itself. IMEHO(2) no amount of
parametrization and callbacks came make up for wrong design, even if
that means going against the canon of historical "wisdom" and
established practices =)

Still IMEHO, of course.

Other related posts: