svn commit: r334670 - projects/pnfs-planb-server/sys/fs/nfsserver
Rick Macklem
rmacklem at FreeBSD.org
Tue Jun 5 20:41:07 UTC 2018
Author: rmacklem
Date: Tue Jun 5 20:41:06 2018
New Revision: 334670
URL: https://svnweb.freebsd.org/changeset/base/334670
Log:
Thanks to a warning from the more recent clang, I caught the fact that
the logic of this "if" was backwards. Weirdly interesting is that it still
worked, because it matched the devid that was for the other mirror and
still got rid of the layout. It did mean that it recalled layouts that
didn't have to be recalled, but that was safe.
Modified:
projects/pnfs-planb-server/sys/fs/nfsserver/nfs_nfsdstate.c
Modified: projects/pnfs-planb-server/sys/fs/nfsserver/nfs_nfsdstate.c
==============================================================================
--- projects/pnfs-planb-server/sys/fs/nfsserver/nfs_nfsdstate.c Tue Jun 5 20:34:11 2018 (r334669)
+++ projects/pnfs-planb-server/sys/fs/nfsserver/nfs_nfsdstate.c Tue Jun 5 20:41:06 2018 (r334670)
@@ -6783,7 +6783,7 @@ nfsrv_flexmirrordel(char *devid, NFSPROC_T *p)
tl += 3;
for (j = 0; j < lyp->lay_mirrorcnt; j++) {
tl++;
- if (!NFSBCMP(devid, tl, NFSX_V4DEVICEID)
+ if (NFSBCMP(devid, tl, NFSX_V4DEVICEID)
== 0) {
/* Found one. */
NFSD_DEBUG(4, "fnd one\n");
More information about the svn-src-projects
mailing list