All of lore.kernel.org
 help / color / mirror / Atom feed
From: Yury Umanets <umka@namesys.com>
To: Geoff Oakham <g@mbl.ca>
Cc: reiserfs-list@namesys.com
Subject: Re: libaal documentation: fact or fiction?
Date: Thu, 09 Oct 2003 13:20:20 +0400	[thread overview]
Message-ID: <3F852854.1090202@namesys.com> (raw)
In-Reply-To: <20031008204618.GA14476@mbl.ca>

Geoff Oakham wrote:

>On Wed, Oct 08, 2003 at 11:56:55PM +0400, Yury Umanets wrote:
>  
>
>>>>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?
>>>      
>>>
>>Actually I'm not sure, that my information about the status is up 
>>to-date. Ask Hans about this.
>>    
>>
>
>Does Hans monitor all traffic here, or should I explicitly ping() him?
>
Ping him explicitly please :)

>
>  
>
>>Hm.. It's cool idea. There only a thing... It is needed to rewrite mutt 
>>and other tools to use this critical section. Also,  this should be 
>>system wide, I mean, that linux should support this feature in its VFS. 
>>I guess Hans will be interesting to discuss this more detailed.
>>    
>>
>
>*nod* I think Hans mentioned something about trying out potential
>changes to VFS initially on reiserfs.. somewhere in the documentation.
>(I can't remember where.)
>

>
>  
>
>>Yet another method that comed to my mind, is to impelement ability to 
>>open not the whole file, but some its part and to have separated file 
>>descriptor for that file. It seems, that QNX is able to do so.
>>    
>>

>That sounds oddly familiar.  Didn't one of the dozens of attempts to
>standardize file locking protocols consider this approch?  (I know enough
>about file locking to know I should avoid it.)
>
>I seem to remember NFS to be a particularily dodgy spot for this stuff.
>
>  
>
>>So, you propose to use some kind of crossover between applications and 
>>actual call to kernel? And this bridge should decide is backend 
>>filesystem is able to do journaling and has user space journaling 
>>control API? It is yet another good idea.
>>    
>>
>
>Umm.. yes?  (I'm sorry, I'm not sure I follow, so I'll ramble a bit and
>hope I mention something approaching an answer.)
>
>I'd like this library to behave properly in most situations:
>
>  a. Reiser supports transactions, kernel does not [yet?].
>
Reiserfs is part of kernel acually. It is running on the same privilage 
level.

>  b. VFS supports transactions
>  c. OS is not Linux and/or does not support transactions at all.
>
>  i. filesystem supports transactions
>  ii. filesystem does not support transactions
>  
>

>Where exactly you put the code that chooses the appropriate
>implementation doesn't matter.  I think it will vary depending on the
>platform & situation.. regardless, it should be hidden from the user.
>Obviously in situation #c, it would have to be handled at compile time.
>In #b, the kernel would handle it.  #a.. perhaps both user and kernel
>will be needed..?
>

Transactions are exist in reiserfs and reiser4 and xfs, etc. But they 
are not controlled from user space. You can't say roolback() after some 
fs actions. And we are speaking about the way how to control them. 
Probably using system call as a interface is good idea.

Speaking about the library... It is fully userspace solution. It might 
be like libc.

>
>Geoff
>
>  
>


-- 
umka



  reply	other threads:[~2003-10-09  9:20 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
2003-10-08 19:56         ` Yury Umanets
2003-10-08 20:46           ` Geoff Oakham
2003-10-09  9:20             ` Yury Umanets [this message]
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=3F852854.1090202@namesys.com \
    --to=umka@namesys.com \
    --cc=g@mbl.ca \
    --cc=reiserfs-list@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.