All of lore.kernel.org
 help / color / mirror / Atom feed
From: Geoff Oakham <g@mbl.ca>
To: Yury Umanets <umka@namesys.com>
Cc: reiserfs-list@namesys.com
Subject: Re: libaal documentation: fact or fiction?
Date: Wed, 8 Oct 2003 15:01:46 -0400	[thread overview]
Message-ID: <20031008190146.GA11458@mbl.ca> (raw)
In-Reply-To: <3F84538B.9010109@namesys.com>

On Wed, Oct 08, 2003 at 10:12:27PM +0400, Yury Umanets wrote:
> >Is this library the userland interface applications use to write to
> >files in atomic operations?
> No. It serves just for having persistent interface for working with 
> device inside libreiser4.

So this is the library Lilo & friends would want to use to find out
where a kernel image is physically located on disk?  Thanks for setting
me straight on this one..  obviously I've guessed wrong.

> Ok, I see, but libreiser4 does not any things with journaling and so on. 
> So, probably it is better to start from reading resier4 design documents 
> on our website and then take a look to kernel code.

Although I find the design documents very interesting, I can't say I
find them helpful for navigating the source.  Perhaps I haven't read
them thoroughly enough.

> We will have userspace API for controlling transactions and other things 
> latter when sys_reiser4() is finished.

Ah, that's good to know.  What's the status of that work?

> > Futhermore, I want to see if it's possible
> >to implement the equivalent functionality (at least from a programmer's
> >perspective) on a traditional UNIX filesystem using old-fasioned
> >file-locking.
> >
> Can you say more detailed about this? What do you mean speaking about 
> old-fasioned file-locking?

Sure: Imagine I'm the author of 'mutt', a popular mail reader.  [I'm
not, but for this "use case," please imagine I am.]  'mutt' allows
multiple instances of itself to run in parallel.. which means I have to
be careful when reading and writing to the [poor] user's mailbox.
Traditionally, this meant I would have to group all my file access into
'critical sections' and obtain an appropriate file locks for the
duration of each section.

At the begining & end of the critical sections, I should be able to
assert the file is in a valid, "non-corrupt" state.  Wait... this sounds
suspiciously like a "transaction": if I wanted to modify mutt to take
advantage of reiserfs4's data journalling, the critical sections would
be the obvious place to do it.

Imagine that I've gone ahead and made these modifications.  My next
thought would be: "ok, now without using #ifdefs, how can I continue to
support legacy platforms [and/or filesystems] that don't support data
journalling?"  This is where I'd hope a good userspace library could
step in.

Does that make sense, or am I completely missing the point of data
journalling?

Thanks,

Geoff

-- 
  PGP fingerprint: 8ADC 92E1 6782 D034 E0E3  8EF4 EA4D 25E3 C17C 48D2
  "If you want to learn more about guns, get a job at [an American]
  convenience store or visit our website at ... " --Michael Moore


  reply	other threads:[~2003-10-08 19:01 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-10-07 17:22 libaal documentation: fact or fiction? Geoff Oakham
2003-10-08  6:52 ` Yury Umanets
2003-10-08 16:32   ` Geoff Oakham
2003-10-08 18:12     ` Yury Umanets
2003-10-08 19:01       ` Geoff Oakham [this message]
2003-10-08 19:56         ` Yury Umanets
2003-10-08 20:46           ` Geoff Oakham
2003-10-09  9:20             ` Yury Umanets
2003-10-09 10:19     ` Hans Reiser
2003-10-09 12:51       ` Geoff Oakham

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20031008190146.GA11458@mbl.ca \
    --to=g@mbl.ca \
    --cc=reiserfs-list@namesys.com \
    --cc=umka@namesys.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.