From: Jeff Layton <jlayton@redhat.com>
To: steved@redhat.com
Cc: linux-nfs@vger.kernel.org
Subject: [PATCH v4 00/11] nfsdcld: add a daemon to track NFSv4 client names on stable storage
Date: Mon, 23 Jan 2012 15:02:00 -0500 [thread overview]
Message-ID: <1327348931-785-1-git-send-email-jlayton@redhat.com> (raw)
This patchset is the userspace portion of the knfsd client name tracking
overhaul. See this patch series for an explanation:
nfsd: overhaul the client name tracking code
The main changes from the last set are:
- the daemon will now reopen the pipe if it's deleted and recreated. This
can happen if knfsd is restarted.
- The daemon now implements an "init" upcall. When knfsd starts, it will
upcall to userspace to ask for a "boot_generation" value. nfsdcld will
fetch that value out of the DB, increment it and reinsert it (atomically).
That guarantees uniqueness of the boot generation value even when multiple
machines are sharing the same nfsdcld db.
- the "create" and "check" upcalls now send the rowid of the record in the
downcall. Eventually the kernel will use this to track some info about
lockowners in some situations. For now the kernel ignores this value,
but the daemon passes it anyway.
- "remove" functionality has been removed from the daemon. The upcall that
previously requested that has been removed, so we have no need for that
functionality in the daemon. Client records are now only removed when
the grace period ends.
Jeff Layton (11):
nfsdcld: add client tracking daemon stub
nfsdcld: add autoconf goop for sqlite
nfsdcld: add routines for a sqlite backend database
nfsdcld: add check/update functionality
nfsdcld: add function to remove unreclaimed client records
nfsdcld: have daemon pass client row index back to kernel
nfsdcld: implement an init upcall
nfsdcld: allow daemon to wait for pipe to show up
nfsdcld: reopen pipe if it's deleted and recreated
nfsdcld: add a manpage for nfsdcld
nfsdcld: update the README
README | 25 +++-
aclocal/libsqlite3.m4 | 33 +++
configure.ac | 21 ++
utils/Makefile.am | 4 +
utils/nfsdcld/Makefile.am | 14 ++
utils/nfsdcld/nfsdcld.c | 478 +++++++++++++++++++++++++++++++++++++++++++++
utils/nfsdcld/nfsdcld.man | 180 +++++++++++++++++
utils/nfsdcld/nfsdcld.pod | 67 +++++++
utils/nfsdcld/sqlite.c | 461 +++++++++++++++++++++++++++++++++++++++++++
utils/nfsdcld/sqlite.h | 31 +++
10 files changed, 1312 insertions(+), 2 deletions(-)
create mode 100644 aclocal/libsqlite3.m4
create mode 100644 utils/nfsdcld/Makefile.am
create mode 100644 utils/nfsdcld/nfsdcld.c
create mode 100644 utils/nfsdcld/nfsdcld.man
create mode 100644 utils/nfsdcld/nfsdcld.pod
create mode 100644 utils/nfsdcld/sqlite.c
create mode 100644 utils/nfsdcld/sqlite.h
--
1.7.7.5
next reply other threads:[~2012-01-23 20:02 UTC|newest]
Thread overview: 27+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-01-23 20:02 Jeff Layton [this message]
2012-01-23 20:02 ` [PATCH v4 01/11] nfsdcld: add client tracking daemon stub Jeff Layton
2012-01-23 20:02 ` [PATCH v4 02/11] nfsdcld: add autoconf goop for sqlite Jeff Layton
2012-01-23 20:02 ` [PATCH v4 03/11] nfsdcld: add routines for a sqlite backend database Jeff Layton
2012-01-23 20:02 ` [PATCH v4 04/11] nfsdcld: add check/update functionality Jeff Layton
2012-01-23 20:02 ` [PATCH v4 05/11] nfsdcld: add function to remove unreclaimed client records Jeff Layton
2012-01-23 20:02 ` [PATCH v4 06/11] nfsdcld: have daemon pass client row index back to kernel Jeff Layton
2012-01-23 20:02 ` [PATCH v4 07/11] nfsdcld: implement an init upcall Jeff Layton
2012-01-23 20:02 ` [PATCH v4 08/11] nfsdcld: allow daemon to wait for pipe to show up Jeff Layton
2012-01-23 20:02 ` [PATCH v4 09/11] nfsdcld: reopen pipe if it's deleted and recreated Jeff Layton
2012-01-25 18:16 ` Steve Dickson
2012-01-25 19:09 ` Jeff Layton
2012-01-25 19:31 ` Steve Dickson
2012-01-25 20:28 ` Jeff Layton
2012-01-25 22:04 ` Steve Dickson
2012-01-25 23:32 ` Jeff Layton
2012-01-26 12:47 ` Steve Dickson
2012-01-26 13:28 ` Jeff Layton
2012-01-26 14:30 ` Jeff Layton
2012-01-26 15:31 ` Steve Dickson
2012-01-26 15:41 ` Jeff Layton
2012-01-26 18:58 ` J. Bruce Fields
2012-01-26 19:36 ` Jeff Layton
2012-01-26 20:18 ` J. Bruce Fields
2012-01-26 21:58 ` Steve Dickson
2012-01-23 20:02 ` [PATCH v4 10/11] nfsdcld: add a manpage for nfsdcld Jeff Layton
2012-01-23 20:02 ` [PATCH v4 11/11] nfsdcld: update the README Jeff Layton
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=1327348931-785-1-git-send-email-jlayton@redhat.com \
--to=jlayton@redhat.com \
--cc=linux-nfs@vger.kernel.org \
--cc=steved@redhat.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).