Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue 3030 #3

Closed
wants to merge 183 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
183 commits
Select commit Hold shift + click to select a range
07012da
Fix kernel panic due to tsd_exit in ZFS_EXIT(zsb)
tuxoko Apr 1, 2015
7008109
align zfs_autoimport_disable manpage with reality
cburroughs Apr 24, 2015
4eb30c6
Serialize access to spa->spa_feat_stats nvlist
nedbass Apr 23, 2015
0bf8501
5410 Document -S option to zfs inherit
pbhenson Jan 1, 2015
ec8501e
5313 Allow I/Os to be aggregated across ZIO priority classes
Apr 11, 2015
c5656c4
Memory leak in make_root_vdev()
huangheintel Apr 26, 2015
0336f3d
Remove useless variable spa_active_count
huangheintel Apr 26, 2015
aded9a6
Cleanup ZEDLETs
dun Feb 18, 2015
20967ff
Replace "email" ZEDLETs with "notify" ZEDLETs
dun Feb 27, 2015
a0d065f
Add support for Pushbullet notifications
dun Feb 27, 2015
090b191
Add notification to io-spare.sh
dun Mar 20, 2015
ce119da
Combine data-notify.sh with io-notify.sh
dun Mar 25, 2015
52d5a1c
Merge branch 'zed-pushbullet'
behlendorf Apr 27, 2015
ecfb0b5
Fix misuse of input argument in traverse_visitbp
tuxoko Apr 26, 2015
308a451
Illumos 5134 - if ZFS_DEBUG or debug= is set, libzpool should enable …
ahrens Sep 5, 2014
788eb90
Illumos 3897 - zfs filesystem and snapshot limits
jjelinek Apr 1, 2015
ca227e5
Illumos 3897 - zfs filesystem and snapshot limits (fix leak)
Apr 1, 2015
58c4aa0
Illumos 4975 - missing mutex_destroy() calls in zfs
lundman Apr 1, 2015
8951cb8
Illumos 4873 - zvol unmap calls can take a very long time for larger …
Apr 3, 2015
5aea364
Illumos 5038 - Remove "old-style" flexible array usage in ZFS.
Apr 1, 2015
9925c28
Illumos 5095 - panic when adding a duplicate dbuf to dn_dbufs
Apr 1, 2015
945dd93
Illumos 5310 - Remove always true tests for non-NULL ds->ds_phys
Apr 1, 2015
d683ddb
Illumos 5314 - Remove "dbuf phys" db->db_data pointer aliases in ZFS
Apr 1, 2015
0c66c32
Illumos 5056 - ZFS deadlock on db_mtx and dn_holds
Apr 2, 2015
6ebebac
Illumos 5531 - NULL pointer dereference in dsl_prop_get_ds()
Apr 2, 2015
6186e29
Illumos 5592 - NULL pointer dereference in dsl_prop_notify_all_cb()
Apr 2, 2015
8dd86a1
Illumos 5812 - assertion failed in zrl_tryenter(): zr_owner==NULL
ahrens Apr 26, 2015
98b2541
Illumos #5244 - zio pipeline callers should explicitly invoke next stage
grwilson Oct 20, 2014
c9520ec
dmu: fix integer overflows
perfinion Apr 30, 2015
6102d03
Add cond_resched to zfs_zget to prevent infinite loop
tuxoko May 1, 2015
8301731
Illumos 3654,3656
ahrens Nov 3, 2014
a0c9a17
Illumos 4901 - zfs filesystem/snapshot limit leaks
jjelinek Jan 28, 2015
cfec5b1
Illumos 4373 - add block contents print to zstreamdump
Nov 3, 2014
3d45fdd
Illumos 4951 - ZFS administrative commands should use reserved space
ahrens Nov 3, 2014
0c60cc3
Illumos 4951 - ZFS administrative commands (fix)
Nov 4, 2014
859735c
Add the '-a' option to 'zpool export'
FransUrbo Mar 20, 2015
50f9ea0
Illumos 5814 - bpobj_iterate_impl(): Close a refcount leak iterating …
wca Apr 26, 2015
36c6ffb
Illumos 5808 - spa_check_logs is not necessary on readonly pools
ahrens Apr 26, 2015
f3c517d
Illumos 5820 - verify failed in zio_done(): BP_EQUAL(bp, io_bp_orig)
ahrens Apr 11, 2015
7a3066f
Illumos 5348 - zio_checksum_error() only fills in info if ECKSUM
ahrens Nov 23, 2014
f0da4d1
Wait for all znodes to be released before tearing down the superblock
chrisrd May 2, 2015
63e3a86
Illumos 5349 - verify that block pointer is plausible before reading
ahrens Nov 26, 2014
16fcdea
arc_evict, arc_evict_ghost: reduce stack usage using kmem_zalloc
chrisrd May 5, 2015
f9cab37
Remove metaslab_min_alloc_size module option
behlendorf May 8, 2015
3df2934
Fix type mismatch on 32-bit systems
behlendorf May 11, 2015
f1512ee
Illumos 5027 - zfs large block support
ahrens Nov 3, 2014
76d5206
ztest should randomly change recordsize
behlendorf Jan 29, 2015
214806c
Safely handle security / ACL failures
eqvinox Jul 2, 2014
492b1d2
Update ZED copyright boilerplate
dun May 6, 2015
e485333
Linux 2.6.36 compat, use REQ_FAILFAST_MASK and remove pre-2.6.36 support
May 8, 2015
7224c67
Illumos 5422 - preserve AVL invariants in dn_dbufs
May 6, 2015
08dc1b2
Illumos 5350 - clean up code in dnode_sync()
ahrens May 6, 2015
10400bf
Illumos 5351, 5352 - scrub pauses
ahrens May 6, 2015
252e1a5
Illumos 5810 - zdb should print details of bpobj
ahrens Apr 26, 2015
63b33e8
Illumos 5562 - ZFS sa_handle's violate kmem invariants, debug kernels…
Jan 10, 2015
19b3b1d
Illumos 5393 - spurious failures from dsl_dataset_hold_obj()
May 12, 2015
5dc8b73
Illumos 5765 - add support for estimating send stream size with lzc_s…
Apr 8, 2015
fd0fd64
Remove unused 'dsl_pool_t *dp' variable
behlendorf May 13, 2015
7290cd3
Relax restriction on zfs_ioc_next_obj() iteration
aerusso May 13, 2015
79065ed
Return -ESTALE to force lookup for missing NFS file handles
May 12, 2015
b1b85c8
Zdb should be able to open the root dataset
dweeezil May 14, 2015
e5fd1dd
Illumos 5243 - zdb -b could be much faster
ahrens May 14, 2015
7fec46b
Illumos 5847 - libzfs_diff should check zfs_prop_get() return
alhazred May 13, 2015
f467b05
Initialize dbu_tqent in dmu_buf_init_user()
dweeezil May 16, 2015
01fcbec
The mount helper mount.zfs MUST be in /sbin (not '$sbindir').
FransUrbo May 18, 2015
141b638
Change 3-digit octal escapes to 4-digit ones
dasjoe May 15, 2015
c11cd7f
Style check shell scripts
FransUrbo May 18, 2015
87abfcb
Wait in libzfs_init() for the /dev/zfs device
behlendorf May 20, 2015
65037d9
Add libzfs_error_init() function
behlendorf May 20, 2015
544f718
Use ExecStartPre to load zfs modules
behlendorf May 26, 2015
2a34db1
Base init scripts for SYSV systems
FransUrbo Apr 23, 2015
4f38c25
SYSV init script fixes.
FransUrbo Jun 2, 2015
d617648
dbuf_try_add_ref minor bug fixes
nedbass May 28, 2015
5f8e1e8
dmu_objset_userquota_get_ids uses dn_bonus unsafely
nedbass May 28, 2015
d050c62
Improve on the ZFS events documentation
FransUrbo Jun 8, 2015
9c43027
Illumos 5269 - zpool import slow
May 6, 2015
c3520e7
Illumos 5818 - zfs {ref}compressratio is incorrect with 4k sector size
ahrens May 20, 2015
44de2f0
Remove unused variable in vdev_add_child()
behlendorf Jun 11, 2015
7807028
Revert "arc_evict, arc_evict_ghost: reduce stack usage using kmem_zal…
dweeezil May 10, 2015
f6b3b1f
Revert "fix l2arc compression buffers leak"
dweeezil Feb 16, 2015
97639d0
Revert "Allow arc_evict_ghost() to only evict meta data"
dweeezil Jan 23, 2015
ad4af89
Partially revert "Add ddt, ddt_entry, and l2arc_hdr caches"
dweeezil Jan 24, 2015
2a43241
Illumos 5369 - arc flags should be an enum
grwilson Dec 6, 2014
b9541d6
Illumos 5408 - managing ZFS cache devices requires lots of RAM
cwill Dec 30, 2014
ca0bf58
Illumos 5497 - lock contention on arcs_mtx
Jan 13, 2015
4f34bd9
Add taskq_wait_outstanding() function
behlendorf Jun 4, 2015
c5528b9
Use taskq_wait_outstanding() function
behlendorf Jun 5, 2015
f604673
Make arc_prune() asynchronous
behlendorf May 30, 2015
121b3ca
Increase arc_c_min to allow safe operation of arc_adapt()
dweeezil Jun 4, 2015
06358ea
Merge branch 'lock-contention-on-arcs_mtx-final'
behlendorf Jun 11, 2015
b64ccd6
Rename cv_wait_interruptible() to cv_wait_sig()
behlendorf Jun 11, 2015
8e70975
Wait interruptibly in prefetch thread
behlendorf Jun 9, 2015
4109212
Add -y option to `zpool iostat`
dasjoe May 24, 2015
90947b2
3.12 compat, NUMA-aware per-superblock shrinker
dweeezil Jun 14, 2015
5d6a460
Unify mount and share for 'zfs create/clone'
behlendorf May 29, 2015
036391c
Additional SYSV init script fixes.
FransUrbo Jun 11, 2015
eda3d4e
Refactor dracut module
nmeum Feb 15, 2015
edbaf24
Force export if it failed the first time
nmeum Feb 16, 2015
01d01ef
Only source '/lib/dracut-lib.sh' if it wasn't so far
nmeum Feb 16, 2015
ec1c11d
Update dracut README
nmeum Feb 17, 2015
57ae840
Linux 4.1 compat: use read_iter() / write_iter()
mk01 May 11, 2015
4c6a700
Increase the number of iput taskq threads
behlendorf Jun 18, 2015
218b4e0
Add zfs_sb_prune_aliases() function
behlendorf Jun 18, 2015
bb3250d
Allocate disk space fairly in the presence of vdevs of unequal size.
dechamps May 10, 2015
e8fe668
Document metaslab_aliquot.
dechamps May 10, 2015
99b14de
Make metaslab_aliquot a module parameter.
dechamps May 10, 2015
72540ea
zfsdev_getminor() should check for invalid file handles
ryao Apr 16, 2015
fa72021
Add IMPLY() and EQUIV() macros
behlendorf Jun 24, 2015
d962d5d
Illumos 5701 - zpool list reports incorrect "alloc" value for cache d…
Jun 15, 2015
ef56b07
Account for ashift when gathering buffers to be written to l2arc device
avg-I Jun 12, 2015
aa9af22
Update all default taskq settings
behlendorf Jun 3, 2015
669dedb
Illumos 5163 - arc should reap range_seg_cache
grwilson Jun 24, 2015
c52fca1
Illumos 5368 - ARC should cache more metadata
ahrens Jun 24, 2015
216f9d0
Revert "Additional SYSV init script fixes."
FransUrbo Jun 19, 2015
16421a1
Additional SYSV init script fixes (3).
FransUrbo Jun 19, 2015
784652c
zdb -d has false positive warning when feature@large_blocks=disabled
Jun 25, 2015
017da6f
Fix for recent zdb -h | -i crashes (seg fault)
Jun 24, 2015
a254ecf
Add ziltest.sh
behlendorf Jun 26, 2015
84045c2
Remove l2ad_evict from zfs_l2arc_evict_class
dweeezil Jun 27, 2015
d6c9ff0
Add /dev/mapper to the list of possible sources for pool devices.
FransUrbo Jun 27, 2015
804e050
Illumos 5175 - implement dmu_read_uio_dbuf() to improve cached read p…
ahrens Jun 16, 2015
8f34397
man: fix spelling mistakes in manual
Jul 1, 2015
a7b10a9
Illumos 6033 - arc_adjust() should search MFU lists
alek-p Jul 1, 2015
cf50a2b
Illumos 5912 - full stream can not be force-received into a dataset i…
avg-I Jul 2, 2015
fec4170
Illumos 5909 - ensure that shared snap names don't become too long af…
avg-I Jul 2, 2015
b664011
Illumos 5870 - dmu_recv_end_check() leaks origin_head hold if error h…
avg-I Jul 2, 2015
71e2fe4
Illumos 5946, 5945
avg-I Jul 2, 2015
5e8cd5d
Illumos 5981 - Deadlock in dmu_objset_find_dp
Jul 2, 2015
4bda3bd
Illumos 5911 - ZFS "hangs" while deleting file
ahrens Jul 2, 2015
e16b3fc
Illumos 5008 - lock contention (rrw_exit) while running a read only load
amotin Jul 18, 2014
1cd7773
Prevent reclaim in metaslab preload threads
dweeezil Jul 3, 2015
2cac7f5
Initramfs scripts for ZoL.
FransUrbo Jan 30, 2014
cc49250
Move dracut directory to contrib
behlendorf Jul 9, 2015
02f8fe4
Illumos 4626 - libzfs memleak in zpool_in_use()
Jul 4, 2015
411bf20
Illumos 4745 - fix AVL code misspellings
Jul 5, 2015
3e43edd
Illumos 4966 - zpool list iterator does not update output
grwilson Jul 5, 2015
de0a9d7
Illumos 5118 - When verifying or creating a storage pool, error messa…
Jul 5, 2015
15cfbb3
Illumos 5427 - memory leak in libzfs when doing rollback
Jul 5, 2015
99197f0
Illumos 5661 - ZFS: "compression = on" should use lz4 if feature is e…
Jul 6, 2015
98cb3a7
Illumos 5813 - zfs_setprop_error(): Handle errno value E2BIG.
wca Jul 6, 2015
541da99
Fix Xen Virtual Block Device detection
ryao Jul 6, 2015
5970eb3
Use truncate instead of fallocate in ziltest.sh
behlendorf Jul 13, 2015
c2d17fd
Disable gcc bool-compare warning
behlendorf Jul 13, 2015
2b7b78f
Fix switch-bool warning
behlendorf Jul 13, 2015
b39c22b
Translate sync zio to sync bio
bprotopopov Jun 25, 2015
0de7c55
Failure of userland copy should return EFAULT
ryao Jul 3, 2015
eaa52d3
Illumos 1765 - assert triggered in libzfs_import.c
Jul 4, 2015
1cddb8c
Illumos 5610 - zfs clone from different source and target pools produ…
alhazred Jul 10, 2015
93f6d7e
Illumos 5764 - "zfs send -nv" directs output to stderr
manoj-joseph Jul 10, 2015
905edb4
Illumos 5347 - idle pool may run itself out of space
ahrens Jul 11, 2015
e80da86
Linux 4.2 compat: bdi_setup_and_register()
behlendorf Jul 14, 2015
7eb333f
Linux 4.2 compat: remove bio->bi_cnt access
behlendorf Jul 14, 2015
bd29109
Linux 4.2 compat: follow_link() / put_link()
behlendorf Jul 15, 2015
2a53e2d
Update inode under range lock
behlendorf Jul 16, 2015
47a4a6f
Support parallel build trees (VPATH builds)
FransUrbo Jun 9, 2014
53b1d97
Add logic to try and recover an inode with an invalid mode
behlendorf Jul 13, 2015
3b79cef
Set default _initconfdir directory
behlendorf Jul 20, 2015
ca67b33
Illumos 5376 - arc_kmem_reap_now() should not result in clearing arc_…
ahrens Jun 26, 2015
500445c
Illumos 5445 - Add more visibility via arcstats
Jun 26, 2015
36da08e
Illumos 5817 - change type of arcs_size from uint64_t to refcount_t
Jun 26, 2015
728d6ae
Reinstate zfs_arc_p_min_shift
behlendorf Jun 26, 2015
8c8af9d
Add hdr_recl() reclaim callback
behlendorf Jun 29, 2015
3056818
Remove double counting HDR_L2ONLY_SIZE
behlendorf Jun 29, 2015
96c080c
Minor style cleanup
behlendorf Jun 29, 2015
48511ea
Fix some minor issues with the SYSV init and initramfs scripts.
FransUrbo Jul 24, 2015
21d41d6
Make sure that POOL_IMPORTED is set, unset and checked where appropri…
FransUrbo Jul 27, 2015
c97d306
Check for NULL in dmu_free_long_range_impl()
behlendorf Jul 24, 2015
1229323
Align thread priority with Linux defaults
behlendorf Jul 24, 2015
c1718e9
Fix build failure with Linux 4.1 and FTRACE
Jul 28, 2015
21a96fb
Fix "BUG: Bad page state" caused by writeback flag
tuxoko Mar 5, 2015
6339c1b
Bound zvol_threads module option
behlendorf Jul 27, 2015
11f552f
Update arc_available_memory() to check freemem
behlendorf Jul 27, 2015
7e8bddd
Update arc_memory_throttle() to check pageout
behlendorf Jul 28, 2015
6f1eccf
Fix whitespace in zed_log_err
dun Jul 28, 2015
69520d6
Rework zed_notify_email for configurable PROG/OPTS
dun Jul 28, 2015
6bec435
ztest: display non-index properties properly at verbose level 6
dweeezil Jul 30, 2015
302f31f
Linux 4.1 compat: configure bdi_setup_and_register()
chrisrd Aug 9, 2015
9d4f86e
Fix build failure with Linux 4.1 and FTRACE
chrisrd Aug 9, 2015
6d79eab
Add parenthesis to the ternary operator
tuxoko Aug 17, 2015
9f5ba90
Fix zvol detection
ryao Jul 14, 2015
ff9b1d0
Handle zap_lookup() failure in ddt_object_load()
behlendorf Aug 18, 2015
efc412b
Linux 4.2 compat: vfs_rename()
behlendorf Jul 28, 2015
1f782e4
Linux 3.18 compat: Snapshot automounting
behlendorf Apr 24, 2015
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions COPYRIGHT
Original file line number Diff line number Diff line change
Expand Up @@ -29,3 +29,5 @@ Unless otherwise noted, all files in this distribution are released
under the Common Development and Distribution License (CDDL).
Exceptions are noted within the associated source files. See the file
OPENSOLARIS.LICENSE for more information.

Refer to the git commit log for authoritative copyright attribution.
27 changes: 19 additions & 8 deletions Makefile.am
Original file line number Diff line number Diff line change
@@ -1,13 +1,12 @@

ACLOCAL_AMFLAGS = -I config

include $(top_srcdir)/config/rpm.am
include $(top_srcdir)/config/deb.am
include $(top_srcdir)/config/tgz.am
include config/rpm.am
include config/deb.am
include config/tgz.am

SUBDIRS = include rpm
if CONFIG_USER
SUBDIRS += dracut udev etc man scripts lib cmd contrib
SUBDIRS += udev etc man scripts lib cmd contrib
endif
if CONFIG_KERNEL
SUBDIRS += module
Expand Down Expand Up @@ -40,16 +39,28 @@ dist-hook:
sed -i 's/Release:[[:print:]]*/Release: $(RELEASE)/' \
$(distdir)/META

checkstyle:
checkstyle: cstyle shellcheck

cstyle:
@find ${top_srcdir} -name '*.[hc]' ! -name 'zfs_config.*' \
! -name '*.mod.c' -type f -exec scripts/cstyle.pl {} \+

shellcheck:
@if type shellcheck > /dev/null 2>&1; then \
(find ${top_srcdir} -type f -name '*.sh.in' -o -type f \
-name '*.sh'; find etc/init.d/zfs*.in -type f) | \
grep -v 'zfs-script-config' | \
while read file; do \
shellcheck --format gcc "$$file"; \
done; \
fi

ctags:
$(RM) $(top_srcdir)/tags
$(RM) tags
find $(top_srcdir) -name .git -prune -o -name '*.[hc]' | xargs ctags

etags:
$(RM) $(top_srcdir)/TAGS
$(RM) TAGS
find $(top_srcdir) -name .pc -prune -o -name '*.[hc]' | xargs etags -a

tags: ctags etags
Expand Down
3 changes: 1 addition & 2 deletions cmd/arc_summary/Makefile.am
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@
bin_SCRIPTS = arc_summary.py
EXTRA_DIST = $(bin_SCRIPTS)
dist_bin_SCRIPTS = arc_summary.py
4 changes: 0 additions & 4 deletions cmd/arc_summary/arc_summary.py
Original file line number Diff line number Diff line change
Expand Up @@ -191,12 +191,10 @@ def get_arc_summary(Kstat):
### ARC Misc. ###
deleted = Kstat["kstat.zfs.misc.arcstats.deleted"]
mutex_miss = Kstat["kstat.zfs.misc.arcstats.mutex_miss"]
recycle_miss = Kstat["kstat.zfs.misc.arcstats.recycle_miss"]

### ARC Misc. ###
output["arc_misc"] = {}
output["arc_misc"]["deleted"] = fHits(deleted)
output["arc_misc"]['recycle_miss'] = fHits(recycle_miss)
output["arc_misc"]['mutex_miss'] = fHits(mutex_miss)
output["arc_misc"]['evict_skips'] = fHits(mutex_miss)

Expand Down Expand Up @@ -302,8 +300,6 @@ def _arc_summary(Kstat):
### ARC Misc. ###
sys.stdout.write("ARC Misc:\n")
sys.stdout.write("\tDeleted:\t\t\t\t%s\n" % arc['arc_misc']['deleted'])
sys.stdout.write("\tRecycle Misses:\t\t\t\t%s\n" %
arc['arc_misc']['recycle_miss'])
sys.stdout.write("\tMutex Misses:\t\t\t\t%s\n" %
arc['arc_misc']['mutex_miss'])
sys.stdout.write("\tEvict Skips:\t\t\t\t%s\n" %
Expand Down
3 changes: 1 addition & 2 deletions cmd/arcstat/Makefile.am
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@
bin_SCRIPTS = arcstat.py
EXTRA_DIST = $(bin_SCRIPTS)
dist_bin_SCRIPTS = arcstat.py
2 changes: 0 additions & 2 deletions cmd/arcstat/arcstat.py
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,6 @@
"mrug": [4, 1000, "MRU Ghost List hits per second"],
"eskip": [5, 1000, "evict_skip per second"],
"mtxmis": [6, 1000, "mutex_miss per second"],
"rmis": [4, 1000, "recycle_miss per second"],
"dread": [5, 1000, "Demand accesses per second"],
"pread": [5, 1000, "Prefetch accesses per second"],
"l2hits": [6, 1000, "L2ARC hits per second"],
Expand Down Expand Up @@ -406,7 +405,6 @@ def calculate():
v["mrug"] = d["mru_ghost_hits"] / sint
v["mfug"] = d["mfu_ghost_hits"] / sint
v["eskip"] = d["evict_skip"] / sint
v["rmis"] = d["recycle_miss"] / sint
v["mtxmis"] = d["mutex_miss"] / sint

if l2exist:
Expand Down
3 changes: 1 addition & 2 deletions cmd/dbufstat/Makefile.am
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@
bin_SCRIPTS = dbufstat.py
EXTRA_DIST = $(bin_SCRIPTS)
dist_bin_SCRIPTS = dbufstat.py
2 changes: 1 addition & 1 deletion cmd/mount_zfs/Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ sbindir=$(mounthelperdir)
sbin_PROGRAMS = mount.zfs

mount_zfs_SOURCES = \
$(top_srcdir)/cmd/mount_zfs/mount_zfs.c
mount_zfs.c

mount_zfs_LDADD = \
$(top_builddir)/lib/libnvpair/libnvpair.la \
Expand Down
4 changes: 3 additions & 1 deletion cmd/mount_zfs/mount_zfs.c
Original file line number Diff line number Diff line change
Expand Up @@ -473,8 +473,10 @@ main(int argc, char **argv)
if (zfsflags & ZS_ZFSUTIL)
zfsutil = 1;

if ((g_zfs = libzfs_init()) == NULL)
if ((g_zfs = libzfs_init()) == NULL) {
(void) fprintf(stderr, "%s", libzfs_error_init(errno));
return (MOUNT_SYSERR);
}

/* try to open the dataset to access the mount point */
if ((zhp = zfs_open(g_zfs, dataset,
Expand Down
4 changes: 2 additions & 2 deletions cmd/zdb/Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ DEFAULT_INCLUDES += \
sbin_PROGRAMS = zdb

zdb_SOURCES = \
$(top_srcdir)/cmd/zdb/zdb.c \
$(top_srcdir)/cmd/zdb/zdb_il.c
zdb.c \
zdb_il.c

zdb_LDADD = \
$(top_builddir)/lib/libnvpair/libnvpair.la \
Expand Down
Loading