<feed xmlns='http://www.w3.org/2005/Atom'>
<title>src/cmd/zdb, branch zfs-0.6.3</title>
<subtitle>FreeBSD source tree</subtitle>
<id>https://cgit-dev.freebsd.org/src/atom?h=zfs-0.6.3</id>
<link rel='self' href='https://cgit-dev.freebsd.org/src/atom?h=zfs-0.6.3'/>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/'/>
<updated>2013-12-19T00:46:35Z</updated>
<entry>
<title>cstyle: Resolve C style issues</title>
<updated>2013-12-19T00:46:35Z</updated>
<author>
<name>Michael Kjorling</name>
<email>michael@kjorling.se</email>
</author>
<published>2013-11-01T19:26:11Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=d1d7e2689db9e03f11c069ebc9f1ba12829e5dac'/>
<id>urn:sha1:d1d7e2689db9e03f11c069ebc9f1ba12829e5dac</id>
<content type='text'>
The vast majority of these changes are in Linux specific code.
They are the result of not having an automated style checker to
validate the code when it was originally written.  Others were
caused when the common code was slightly adjusted for Linux.

This patch contains no functional changes.  It only refreshes
the code to conform to style guide.

Everyone submitting patches for inclusion upstream should now
run 'make checkstyle' and resolve any warning prior to opening
a pull request.  The automated builders have been updated to
fail a build if when 'make checkstyle' detects an issue.

Signed-off-by: Brian Behlendorf &lt;behlendorf1@llnl.gov&gt;
Closes #1821
</content>
</entry>
<entry>
<title>Add missing libzfs_core to Makefiles</title>
<updated>2013-11-20T23:44:15Z</updated>
<author>
<name>Maximilian Mehnert</name>
<email>maximilian.mehnert@gmx.de</email>
</author>
<published>2013-11-17T10:47:50Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=539defc873dd1b53d7fc483947e56cbfaeebeee8'/>
<id>urn:sha1:539defc873dd1b53d7fc483947e56cbfaeebeee8</id>
<content type='text'>
On some platforms symbols provided by libzfs_core and used by
libzfs were not available to the linker.  To avoid this issue
libzfs_core has been added to the list of required libraries
when building utilities which depend on libzfs.  This should
have been handled properly by libtool and it's still not
entirely clear why it wasn't on all platforms.

Signed-off-by: Brian Behlendorf &lt;behlendorf1@llnl.gov&gt;
Closes #1841
</content>
</entry>
<entry>
<title>Illumos #3603, #3604: bobj improvements</title>
<updated>2013-10-31T21:57:51Z</updated>
<author>
<name>Matthew Ahrens</name>
<email>mahrens@delphix.com</email>
</author>
<published>2013-07-05T19:37:16Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=d1fada1e6d953e32de4080bd366df17c640de191'/>
<id>urn:sha1:d1fada1e6d953e32de4080bd366df17c640de191</id>
<content type='text'>
3603 panic from bpobj_enqueue_subobj()
3604 zdb should print bpobjs more verbosely
3871 GCC 4.5.3 does not like issue 3604 patch
Reviewed by: Henrik Mattson &lt;henrik.mattson@delphix.com&gt;
Reviewed by: Adam Leventhal &lt;ahl@delphix.com&gt;
Reviewed by: Christopher Siden &lt;christopher.siden@delphix.com&gt;
Reviewed by: George Wilson &lt;george.wilson@delphix.com&gt;
Reviewed by: Garrett D'Amore &lt;garrett@damore.org&gt;
Approved by: Dan McDonald &lt;danmcd@nexenta.com&gt;

References:
  https://www.illumos.org/issues/3603
  https://www.illumos.org/issues/3604
  https://www.illumos.org/issues/3871
  illumos/illumos-gate@d04756377ddd1cf28ebcf652541094e17b03c889

Ported-by: Richard Yao &lt;ryao@gentoo.org&gt;
Signed-off-by: Brian Behlendorf &lt;behlendorf1@llnl.gov&gt;
Issue #1775

Note that the patch from Illumos issue 3871 is not accepted into Illumos
at the time of this writing. It is something that I wrote when porting
this. Documentation is in the Illumos issue.
</content>
</entry>
<entry>
<title>Generate libraries with correct DT_NEEDED entries</title>
<updated>2013-10-10T23:56:51Z</updated>
<author>
<name>Richard Yao</name>
<email>ryao@gentoo.org</email>
</author>
<published>2013-09-26T17:42:41Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=31fc19399e597e3391f19f1392ab120f1de0d5f2'/>
<id>urn:sha1:31fc19399e597e3391f19f1392ab120f1de0d5f2</id>
<content type='text'>
Libraries that depend on other libraries should list them in ELF's
DT_NEEDED field so that programs linking to them do not need to specify
those libraries unless they depend on them as well. This is not the case
in the current code and the consequence is that anything that needs a
library must know its dependencies. This is fragile and caused GRUB2's
configure script to break when a dependency was added on libblkid in
libzfs.

This resolves that problem by using LIBADD/LDADD to specify libraries in
Makefile.am instead of LDFLAGS. This ensures that proper DT_NEEDED
entries are generated and prevents GRUB2's configure script from
breaking in the presence of a libblkid dependency. This also removes
unneeded dependencies from various files.

Signed-off-by: Richard Yao &lt;ryao@gentoo.org&gt;
Signed-off-by: Brian Behlendorf &lt;behlendorf1@llnl.gov&gt;
Issue #1751
</content>
</entry>
<entry>
<title>Illumos #3464</title>
<updated>2013-09-04T23:01:24Z</updated>
<author>
<name>Matthew Ahrens</name>
<email>mahrens@delphix.com</email>
</author>
<published>2013-09-04T12:00:57Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=13fe019870c8779bf2f5b3ff731b512cf89133ef'/>
<id>urn:sha1:13fe019870c8779bf2f5b3ff731b512cf89133ef</id>
<content type='text'>
3464 zfs synctask code needs restructuring
Reviewed by: Dan Kimmel &lt;dan.kimmel@delphix.com&gt;
Reviewed by: Adam Leventhal &lt;ahl@delphix.com&gt;
Reviewed by: George Wilson &lt;george.wilson@delphix.com&gt;
Reviewed by: Christopher Siden &lt;christopher.siden@delphix.com&gt;
Approved by: Garrett D'Amore &lt;garrett@damore.org&gt;

References:
  https://www.illumos.org/issues/3464
  illumos/illumos-gate@3b2aab18808792cbd248a12f1edf139b89833c13

Ported-by: Tim Chase &lt;tim@chase2k.com&gt;
Signed-off-by: Brian Behlendorf &lt;behlendorf1@llnl.gov&gt;
Closes #1495
</content>
</entry>
<entry>
<title>Illumos #2882, #2883, #2900</title>
<updated>2013-09-04T22:49:00Z</updated>
<author>
<name>Matthew Ahrens</name>
<email>mahrens@delphix.com</email>
</author>
<published>2013-08-28T11:45:09Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=6f1ffb06655008c9b519108ed29fbf03acd6e5de'/>
<id>urn:sha1:6f1ffb06655008c9b519108ed29fbf03acd6e5de</id>
<content type='text'>
2882 implement libzfs_core
2883 changing "canmount" property to "on" should not always remount dataset
2900 "zfs snapshot" should be able to create multiple, arbitrary snapshots at once

Reviewed by: George Wilson &lt;george.wilson@delphix.com&gt;
Reviewed by: Chris Siden &lt;christopher.siden@delphix.com&gt;
Reviewed by: Garrett D'Amore &lt;garrett@damore.org&gt;
Reviewed by: Bill Pijewski &lt;wdp@joyent.com&gt;
Reviewed by: Dan Kruchinin &lt;dan.kruchinin@gmail.com&gt;
Approved by: Eric Schrock &lt;Eric.Schrock@delphix.com&gt;

References:
  https://www.illumos.org/issues/2882
  https://www.illumos.org/issues/2883
  https://www.illumos.org/issues/2900
  illumos/illumos-gate@4445fffbbb1ea25fd0e9ea68b9380dd7a6709025

Ported-by: Tim Chase &lt;tim@chase2k.com&gt;
Signed-off-by: Brian Behlendorf &lt;behlendorf1@llnl.gov&gt;
Closes #1293

Porting notes:

WARNING: This patch changes the user/kernel ABI.  That means that
the zfs/zpool utilities built from master are NOT compatible with
the 0.6.2 kernel modules.  Ensure you load the matching kernel
modules from master after updating the utilities.  Otherwise the
zfs/zpool commands will be unable to interact with your pool and
you will see errors similar to the following:

  $ zpool list
  failed to read pool configuration: bad address
  no pools available

  $ zfs list
  no datasets available

Add zvol minor device creation to the new zfs_snapshot_nvl function.

Remove the logging of the "release" operation in
dsl_dataset_user_release_sync().  The logging caused a null dereference
because ds-&gt;ds_dir is zeroed in dsl_dataset_destroy_sync() and the
logging functions try to get the ds name via the dsl_dataset_name()
function. I've got no idea why this particular code would have worked
in Illumos.  This code has subsequently been completely reworked in
Illumos commit 3b2aab1 (3464 zfs synctask code needs restructuring).

Squash some "may be used uninitialized" warning/erorrs.

Fix some printf format warnings for %lld and %llu.

Apply a few spa_writeable() changes that were made to Illumos in
illumos/illumos-gate.git@cd1c8b8 as part of the 3112, 3113, 3114 and
3115 fixes.

Add a missing call to fnvlist_free(nvl) in log_internal() that was added
in Illumos to fix issue 3085 but couldn't be ported to ZoL at the time
(zfsonlinux/zfs@9e11c73) because it depended on future work.
</content>
</entry>
<entry>
<title>zdb: enhancement - Display SA xattrs.</title>
<updated>2013-07-09T20:52:28Z</updated>
<author>
<name>Tim Chase</name>
<email>tim@chase2k.com</email>
</author>
<published>2013-07-09T12:15:26Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=50210587563bb37c48d2624d11e158ab3ad30715'/>
<id>urn:sha1:50210587563bb37c48d2624d11e158ab3ad30715</id>
<content type='text'>
If the znode has SA xattrs, display them following the other
standard attributes.  The format used is similar to that used
when listing the contents of a ZAP.  It is as follows:

	$ zdb -vvv &lt;pool&gt;/&lt;dataset&gt; &lt;object&gt;
	...
	SA xattrs: &lt;size&gt; bytes, &lt;number&gt; entries
		&lt;name1&gt; = &lt;value1&gt;
		&lt;name2&gt; = &lt;value2&gt;
		...

Signed-off-by: Brian Behlendorf &lt;behlendorf1@llnl.gov&gt;
Closes #1581
</content>
</entry>
<entry>
<title>Avoid abort() in vn_rdwr(): libzpool/kernel.c</title>
<updated>2013-07-09T18:56:43Z</updated>
<author>
<name>Mike Leddy</name>
<email>mike.leddy@gmail.com</email>
</author>
<published>2013-07-04T04:02:05Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=5d3dc3fb72518a4c191e3a014622b74365eb3a74'/>
<id>urn:sha1:5d3dc3fb72518a4c191e3a014622b74365eb3a74</id>
<content type='text'>
Make sure that buffer is aligned to 512 bytes on linux so that
pread call combined with O_DIRECT does not return EINVAL.

Signed-off-by: Brian Behlendorf &lt;behlendorf1@llnl.gov&gt;
Closes #1570
</content>
</entry>
<entry>
<title>Illumos #3498 panic in arc_read()</title>
<updated>2013-07-02T20:34:31Z</updated>
<author>
<name>George Wilson</name>
<email>george.wilson@delphix.com</email>
</author>
<published>2013-07-02T20:26:24Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=294f68063b49c06d3118d51016811063e69cf97a'/>
<id>urn:sha1:294f68063b49c06d3118d51016811063e69cf97a</id>
<content type='text'>
3498 panic in arc_read(): !refcount_is_zero(&amp;pbuf-&gt;b_hdr-&gt;b_refcnt)
Reviewed by: Adam Leventhal &lt;ahl@delphix.com&gt;
Reviewed by: Matthew Ahrens &lt;mahrens@delphix.com&gt;
Approved by: Richard Lowe &lt;richlowe@richlowe.net&gt;

References:
  illumos/illumos-gate@1b912ec7100c10e7243bf0879af0fe580e08c73d
  https://www.illumos.org/issues/3498

Ported-by: Brian Behlendorf &lt;behlendorf1@llnl.gov&gt;
Closes #1249
</content>
</entry>
<entry>
<title>Override default SPA config location via environment</title>
<updated>2013-07-01T20:25:44Z</updated>
<author>
<name>Cyril Plisko</name>
<email>cyril.plisko@mountall.com</email>
</author>
<published>2013-06-24T06:45:20Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=64d7b6cf75e52a4698d9bdec61745573c39d2e5a'/>
<id>urn:sha1:64d7b6cf75e52a4698d9bdec61745573c39d2e5a</id>
<content type='text'>
When using zdb with non-default SPA config file it is not convenient
to add -U &lt;non-default-config-file-path&gt; all the time. This commit
introduces support for setting/overriding SPA config location via
environment variable 'SPA_CONFIG_PATH'.

If -U flag is specified in the command line it will override any other
value as usual.

Signed-off-by: Brian Behlendorf &lt;behlendorf1@llnl.gov&gt;
Closes #1545
</content>
</entry>
</feed>
