All of lore.kernel.org
 help / color / mirror / Atom feed
From: David Teigland <teigland@redhat.com>
To: ocfs2-devel@oss.oracle.com
Subject: [Ocfs2-devel] lvb length issue [was Re: [ocfs2-tools-devel] question of ocfs2_controld (Jun 27)]
Date: Thu, 9 Jul 2009 16:55:04 -0500	[thread overview]
Message-ID: <20090709215504.GB11643@redhat.com> (raw)
In-Reply-To: <20090709205528.GA30460@mail.oracle.com>

On Thu, Jul 09, 2009 at 01:55:28PM -0700, Joel Becker wrote:
> On Thu, Jul 09, 2009 at 01:53:38PM -0500, David Teigland wrote:
> > Here's a kernel patch that I've not yet tried.  The code using libdlm will
> > need to add the flag 0x00000010 to dlm_new_lockspace().  (Until we've added
> > the new LVB64 define to libdlm.h.)
> > 
> > >From 75e92c78bb0b0002f0253bfe10bef8585a0d52d6 Mon Sep 17 00:00:00 2001
> > From: David Teigland <teigland@redhat.com>
> > Date: Thu, 9 Jul 2009 13:11:02 -0500
> > Subject: [PATCH] dlm: add DLM_LSFL_LVB64 for lockspace creation
> > 
> > Add a new flag DLM_LSFL_LVB64 to create lockspaces with 64 byte lvbs,
> > overriding the lvb length parameter.  It is useful to override the
> > fixed 32 byte lvb imposed by the user api when the lockspace is created
> > from userspace but used from the kernel.  Locking through the user api
> > can still only access 32 byte lvbs.
> 
> 	Hmm, you're tying a permanent flag to 64bytes, yet userspace
> can't get at them?  Seems a bit too ocfs2-tools specific, and yet it
> doesn't let ocfs2-tools eventually try to share the lvb.

Yes, I think the only other sane option is to do full variable-sized lvb
support for userspace.  That would be nice, and I wouldn't mind doing it.  But
it would take significant user/kernel api work, and take some time, of course.

Dave

  reply	other threads:[~2009-07-09 21:55 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <4A451AB5.9070908@suse.de>
     [not found] ` <20090626193436.GC4478@mail.oracle.com>
     [not found]   ` <4A45257C.6040704@suse.de>
     [not found]     ` <20090629080023.GB8373@mail.oracle.com>
2009-07-06 12:26       ` [Ocfs2-devel] lvb length issue [was Re: [ocfs2-tools-devel] question of ocfs2_controld (Jun 27)] Coly Li
2009-07-07 16:01         ` David Teigland
2009-07-07 17:06           ` Coly Li
2009-07-07 17:24           ` Sunil Mushran
2009-07-07 18:35             ` Coly Li
2009-07-07 17:47           ` Joel Becker
2009-07-08 14:15             ` David Teigland
2009-07-09 18:53               ` David Teigland
2009-07-09 20:55                 ` Joel Becker
2009-07-09 21:55                   ` David Teigland [this message]
2009-07-09 22:28                     ` Joel Becker
2009-07-31 11:59                 ` Coly Li
2009-07-31 16:21                   ` David Teigland
2009-07-31 16:49                     ` Coly Li

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=20090709215504.GB11643@redhat.com \
    --to=teigland@redhat.com \
    --cc=ocfs2-devel@oss.oracle.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.