From: Eric Anderle <eanderle@umich.edu>
To: bhalevy <bhalevy@panasas.com>
Cc: "J. Bruce Fields" <bfields@fieldses.org>,
linux-nfs <linux-nfs@vger.kernel.org>
Subject: [PATCH 1/1] pnfs: Fix num_ds bug in nfsd4_set_pnfs_dlm_device()
Date: Fri, 18 Jun 2010 11:55:58 -0400 [thread overview]
Message-ID: <1276876558.1796.19.camel@Berlin> (raw)
>From cd18db8401e1df4ee031e6a6c53e0f3353080dca Mon Sep 17 00:00:00 2001
From: Eric Anderle <eanderle@umich.edu>
Date: Fri, 18 Jun 2010 10:09:46 -0400
Subject: [PATCH 1/1] pnfs: Fix num_ds bug in nfsd4_set_pnfs_dlm_device()
Previously, when updating the DS list of an existing pnfs dlm device,
the number of ds's was not updated. Fixed.
Signed-off-by: Eric Anderle <eanderle@umich.edu>
---
fs/nfsd/nfs4pnfsdlm.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/fs/nfsd/nfs4pnfsdlm.c b/fs/nfsd/nfs4pnfsdlm.c
index 40f9b84..ffe1c32 100644
--- a/fs/nfsd/nfs4pnfsdlm.c
+++ b/fs/nfsd/nfs4pnfsdlm.c
@@ -189,6 +189,7 @@ nfsd4_set_pnfs_dlm_device(char *pnfs_dlm_device, int len)
found->disk_name, found->ds_list, new->ds_list);
memset(found->ds_list, 0, DISK_NAME_LEN);
memcpy(found->ds_list, new->ds_list, strlen(new->ds_list));
+ found->num_ds = new->num_ds;
kfree(new);
} else {
dprintk("%s Adding pnfs_dlm_device %s:%s\n", __func__,
--
1.7.0.4
next reply other threads:[~2010-06-18 15:56 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-06-18 15:55 Eric Anderle [this message]
2010-06-18 21:23 ` [PATCH 1/1] pnfs: Fix num_ds bug in nfsd4_set_pnfs_dlm_device() Benny Halevy
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=1276876558.1796.19.camel@Berlin \
--to=eanderle@umich.edu \
--cc=bfields@fieldses.org \
--cc=bhalevy@panasas.com \
--cc=linux-nfs@vger.kernel.org \
/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