-
Notifications
You must be signed in to change notification settings - Fork 770
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
6872 zfs libraries should not allow uninitialized variables
Reviewed by: Dan Kimmel <[email protected]> Reviewed by: George Wilson <[email protected]> Reviewed by: Prakash Surya <[email protected]> Reviewed by: Yuri Pankov <[email protected]> Approved by: Robert Mustacchi <[email protected]>
- Loading branch information
1 parent
80309ff
commit f83b46b
Showing
10 changed files
with
35 additions
and
29 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -22,7 +22,7 @@ | |
# Use is subject to license terms. | ||
# | ||
# Copyright 2010 Nexenta Systems, Inc. All rights reserved. | ||
# Copyright (c) 2012 by Delphix. All rights reserved. | ||
# Copyright (c) 2012, 2015 by Delphix. All rights reserved. | ||
# Copyright 2016 Igor Kozhukhov <[email protected]>. | ||
# | ||
|
||
|
@@ -51,8 +51,8 @@ CPPFLAGS += -D_LARGEFILE64_SOURCE=1 -D_REENTRANT $(INCS) | |
$(NOT_RELEASE_BUILD)CPPFLAGS += -DDEBUG | ||
|
||
# lint complains about unused _umem_* functions | ||
LINTFLAGS += -xerroff=E_NAME_DEF_NOT_USED2 | ||
LINTFLAGS64 += -xerroff=E_NAME_DEF_NOT_USED2 | ||
LINTFLAGS += -xerroff=E_NAME_DEF_NOT_USED2 | ||
LINTFLAGS64 += -xerroff=E_NAME_DEF_NOT_USED2 | ||
|
||
ROOTUSRSBINLINKS = $(PROG:%=$(ROOTUSRSBIN)/%) | ||
USRLIBFSTYPELINKS = $(LINKPROGS:%=$(USRLIBFSTYPE)/%) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -21,6 +21,7 @@ | |
# | ||
# Copyright (c) 2005, 2010, Oracle and/or its affiliates. All rights reserved. | ||
# Copyright 2016 Igor Kozhukhov <[email protected]>. | ||
# Copyright (c) 2015 by Delphix. All rights reserved. | ||
# | ||
|
||
PROG= zpool | ||
|
@@ -46,8 +47,8 @@ CPPFLAGS += -D_LARGEFILE64_SOURCE=1 -D_REENTRANT $(INCS) | |
$(NOT_RELEASE_BUILD)CPPFLAGS += -DDEBUG | ||
|
||
# lint complains about unused _umem_* functions | ||
LINTFLAGS += -xerroff=E_NAME_DEF_NOT_USED2 | ||
LINTFLAGS64 += -xerroff=E_NAME_DEF_NOT_USED2 | ||
LINTFLAGS += -xerroff=E_NAME_DEF_NOT_USED2 | ||
LINTFLAGS64 += -xerroff=E_NAME_DEF_NOT_USED2 | ||
|
||
ROOTUSRSBINLINKS = $(PROG:%=$(ROOTUSRSBIN)/%) | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -21,7 +21,7 @@ | |
|
||
/* | ||
* Copyright (c) 2005, 2010, Oracle and/or its affiliates. All rights reserved. | ||
* Copyright (c) 2013 by Delphix. All rights reserved. | ||
* Copyright (c) 2013, 2015 by Delphix. All rights reserved. | ||
* Copyright 2016 Igor Kozhukhov <[email protected]>. | ||
*/ | ||
|
||
|
@@ -558,7 +558,6 @@ get_replication(nvlist_t *nvroot, boolean_t fatal) | |
verify(nvlist_lookup_nvlist_array(nvroot, ZPOOL_CONFIG_CHILDREN, | ||
&top, &toplevels) == 0); | ||
|
||
lastrep.zprl_type = NULL; | ||
for (t = 0; t < toplevels; t++) { | ||
uint64_t is_log = B_FALSE; | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters