]> git.proxmox.com Git - mirror_zfs-debian.git/log
mirror_zfs-debian.git
10 years agoCorrect Closes entry
Aron Xu [Thu, 4 Jul 2013 15:15:48 +0000 (23:15 +0800)]
Correct Closes entry

10 years agoAdd Simplified Chinese translation.
Aron Xu [Thu, 4 Jul 2013 14:45:47 +0000 (22:45 +0800)]
Add Simplified Chinese translation.

10 years agoAdd po-debconf and debconf dependencies
Aron Xu [Thu, 4 Jul 2013 14:14:02 +0000 (22:14 +0800)]
Add po-debconf and debconf dependencies

10 years agoAdd POTFILES.in, run debconf-updatepo
Aron Xu [Thu, 4 Jul 2013 14:10:22 +0000 (22:10 +0800)]
Add POTFILES.in, run debconf-updatepo

10 years agoUse template reviewed by debian-l10n-en
Aron Xu [Thu, 4 Jul 2013 14:06:57 +0000 (22:06 +0800)]
Use template reviewed by debian-l10n-en

10 years agoRemove duplicate Section field in binary:zfs-dkms
Aron Xu [Thu, 4 Jul 2013 14:05:18 +0000 (22:05 +0800)]
Remove duplicate Section field in binary:zfs-dkms

10 years agoLittle update to copyright
Aron Xu [Fri, 28 Jun 2013 18:56:23 +0000 (02:56 +0800)]
Little update to copyright

10 years agoDisable trigger activation for now
Aron Xu [Fri, 28 Jun 2013 18:19:43 +0000 (02:19 +0800)]
Disable trigger activation for now

Trigger activation is needed when initramfs support is properly
landing, but we don't have proper support from boot loader so that
initramfs zfs isn't much usable/reliable on user systems currently.

10 years agoImprove debconf templates
Aron Xu [Fri, 28 Jun 2013 18:15:25 +0000 (02:15 +0800)]
Improve debconf templates

Still needs to be sent for review and call for translations.

10 years agoDisable zfs-initramfs, improve descriptions
Aron Xu [Fri, 28 Jun 2013 17:56:00 +0000 (01:56 +0800)]
Disable zfs-initramfs, improve descriptions

10 years agoMisc update of d/control d/compat
Aron Xu [Thu, 30 May 2013 20:50:26 +0000 (04:50 +0800)]
Misc update of d/control d/compat

11 years agoForget about .pc files
Carlos Alberto Lopez Perez [Sat, 27 Apr 2013 19:08:41 +0000 (21:08 +0200)]
Forget about .pc files

11 years agoAdd spl-timeout-wait-for-header-and-symvers.patch patch
Carlos Alberto Lopez Perez [Sat, 27 Apr 2013 18:54:46 +0000 (20:54 +0200)]
Add spl-timeout-wait-for-header-and-symvers.patch patch

  This Ensure that --with-spl-timeout waits for both SPL spl_config.h
  and symvers files

  The previous code was only waiting for the symver file. But the postinst
  target of the DKMS script for SPL will not only create the symvers file,
  but also the header spl_config.h.

  If we are waiting in the configure script of ZFS for the SPL symvers file,
  then we also need to wait for spl_config.h. Otherwise the configure script
  will abort because the spl_config.h is not yet available.

  On top of that, the function ZFS_AC_SPL_MODULE_SYMVERS is moved to the end
  of the function ZFS_AC_SPL to allow both checks share the with-spl-timeout
  parameter.

11 years agoAdd --with-spl-timeout=600 to the configure options when building the module with...
Carlos Alberto Lopez Perez [Sat, 27 Apr 2013 18:53:22 +0000 (20:53 +0200)]
Add --with-spl-timeout=600 to the configure options when building the module with DKMS

  This will make the configure script wait up to 600 seconds for the SPL
  config and symver files to be available.

  This is needed when upgrading the kernel version, because DKMS will start
  the build for SPL and ZFS in parallel. And ZFS to be correctly built needs
  the symvers of SPL. So ZFS can't start building until SPL has finished.

  The proper fix would be implementing dependencies on DKMS. But in the
  meanwhile this will do the trick.

11 years agoFix broken initramfs hooks caused by commit 1123dc4
Carlos Alberto Lopez Perez [Wed, 10 Apr 2013 03:51:59 +0000 (05:51 +0200)]
Fix broken initramfs hooks caused by commit 1123dc4

 * The hooks were copying the required files for supporting the
   deprecated zdev.conf syntax.

 * Remove the deleted files from the list.

 * Plus: remove a trailing space.

11 years agoTrivial commit to reflect that now /etc/hostid is created by spl-dkms
Carlos Alberto Lopez Perez [Wed, 10 Apr 2013 03:50:55 +0000 (05:50 +0200)]
Trivial commit to reflect that now /etc/hostid is created by spl-dkms

11 years agoMerge tag 'upstream/0.6.1'
Carlos Alberto Lopez Perez [Wed, 10 Apr 2013 01:57:12 +0000 (03:57 +0200)]
Merge tag 'upstream/0.6.1'

Upstream version 0.6.1

11 years agoImported Upstream version 0.6.1
Carlos Alberto Lopez Perez [Wed, 10 Apr 2013 01:57:11 +0000 (03:57 +0200)]
Imported Upstream version 0.6.1

11 years agoRemove debuild-ppa.sh
Aron Xu [Tue, 9 Apr 2013 06:11:16 +0000 (14:11 +0800)]
Remove debuild-ppa.sh

Remove the helper script for uploading to PPA.

11 years agoRemove patch to support legacy zdev.conf configuration files.
Carlos Alberto Lopez Perez [Mon, 8 Apr 2013 23:39:22 +0000 (01:39 +0200)]
Remove patch to support legacy zdev.conf configuration files.

  * This complements previous commit dd1eb91

    * zdev.conf syntax is not longer supported by upstream.

  * We aren't interested in shipping a patch with our _first_ _release_
    to support an already deprecated feature by upstream that will only
    make the future maintenance of the package harder in Debian.

  * This was the last patch. So remove also the series file.

11 years agoMerge branch 'clopez'
Aron Xu [Mon, 8 Apr 2013 08:37:52 +0000 (16:37 +0800)]
Merge branch 'clopez'

11 years agoMerge tag 'upstream/0.6.1'
Aron Xu [Mon, 8 Apr 2013 06:40:43 +0000 (14:40 +0800)]
Merge tag 'upstream/0.6.1'

Upstream version 0.6.1

Conflicts:
.gitignore
rpm/fedora/zfs-dkms.spec.in
rpm/fedora/zfs.spec.in

11 years agoImported Upstream version 0.6.1
Aron Xu [Mon, 8 Apr 2013 06:40:23 +0000 (14:40 +0800)]
Imported Upstream version 0.6.1

11 years agoAdd debconf helpers: Ask the user before building on a 32 bit kernel
Carlos Alberto Lopez Perez [Wed, 3 Apr 2013 00:22:55 +0000 (02:22 +0200)]
Add debconf helpers: Ask the user before building on a 32 bit kernel

 * Detect at install time the kernel the user is running

   * If a 64-bit kernel is detected skip any question and just build
     the ZFS kernel module.

   * If a 32-bit kernel is detected, then the user is warned (via debconf)
     about that. And the user is asked to stop the build (the default
     is to stop the build). If the user selects to stop the build then
     we exit with status 0 on postinst before building the module so
     the package gets as installed correctly on the dpkg database but
     the module is not built.

   * If we can't detect if the kernel is 32 or 64 bit we tell the user that
     we couldn't detect that and we tell him that he shouldn't continue
     building ZFS on a 32-bit kernel.
     We also ask him to stop the build and we proceed like in the previous
     case.

  * If the user asks by mistake "no" to build the kernel and later he changes
    his mind and wants to build it, he just needs to reconfigure the package:
    dpkg-reconfigure zfs-dkms

 * TODO: Add translations for the debhelper templates.

11 years agoCall notify-reboot-required after the module was built
Carlos Alberto Lopez Perez [Tue, 2 Apr 2013 22:03:56 +0000 (00:03 +0200)]
Call notify-reboot-required after the module was built

 * The compilation of the module happens inside the #DEBHELPER# block
   (automatically handled by dh_dkms). So call notify-reboot-required
   after it was built.

11 years agoFix and improve the generation of the stripped kernel source tree
Carlos Alberto Lopez Perez [Tue, 2 Apr 2013 21:10:46 +0000 (23:10 +0200)]
Fix and improve the generation of the stripped kernel source tree

  * Commit f3757573 broke the rules used for the generation of the
    stripped kernel source tree because of the requirement of the
    rpm directory to be present for CONFIG_KERNEL
    (which is clearly not required for us).

  * Add a new rule to sed Makefile.am and manually set "SUBDIRS" to
    "module include" for CONFIG_KERNEL and remove it for the other
    configs.

    * This has the benefit that now running ./configure --with-config=user
    && make in the DKMS source tree is a nop while before it gave
    an error.

  * Improve the robustness of the rules by ensuring that they will
    abort if something is not as expected.

11 years agoRemove /etc/zfs/zdev.conf from configuration files and remove zdev.conf examples
Carlos Alberto Lopez Perez [Tue, 2 Apr 2013 01:08:34 +0000 (03:08 +0200)]
Remove /etc/zfs/zdev.conf from configuration files and remove zdev.conf examples

  * /etc/zfs/zdev.conf should not be a configuration file.
This is by policy:
E.2 Fully-featured maintainer script configuration handling
http://www.debian.org/doc/debian-policy/ap-pkg-conffiles.html

This kind of site-specific configuration files should not be added
to the package files.
You don't want this file to be removed when you purge the package.

  * zdev.conf is not longer supported by upstream. We are carring a patch
    patches/0001-Revert-Retire-zpool_id-infrastructure.patch that I would
    like to remove ASAP.

    * Remove also all the examples related to zdev.conf shipped.
      Users should use vdev_id.conf instead.

 [!] Don't add vdev_id.conf to configuration files.

11 years agoUpdate NEWS version and add a reminder on changelog
Carlos Alberto Lopez Perez [Tue, 2 Apr 2013 00:56:00 +0000 (02:56 +0200)]
Update NEWS version and add a reminder on changelog

11 years agoRefresh 0001-Revert-Retire-zpool_id-infrastructure.patch
Carlos Alberto Lopez Perez [Tue, 2 Apr 2013 00:29:05 +0000 (02:29 +0200)]
Refresh 0001-Revert-Retire-zpool_id-infrastructure.patch

11 years agoReset changelog and update maintainer and vcs fields on debian/control
Carlos Alberto Lopez Perez [Tue, 2 Apr 2013 00:08:10 +0000 (02:08 +0200)]
Reset changelog and update maintainer and vcs fields on debian/control

 * Add missing homepage field on debian/control

11 years agoLower DKMS version requirements to Squeeze version.
Carlos Alberto Lopez Perez [Tue, 2 Apr 2013 00:04:31 +0000 (02:04 +0200)]
Lower DKMS version requirements to Squeeze version.

 * Squeeze DKMS version is 2.1.1.2-5

11 years agoFix debian/watch (another time)
Carlos Alberto Lopez Perez [Mon, 1 Apr 2013 23:56:56 +0000 (01:56 +0200)]
Fix debian/watch (another time)

 * Upstream is not longer using github to distribute tarballs
   * 0.6.1 tarballs were not added (as the time of writing this) to
     https://github.com/zfsonlinux/zfs/downloads
 * Update the url to http://zfsonlinux.org/
 * uscan --report-status now says:
   Newest version on remote site is 0.6.1, local version is 0.6.1
   => Package is up to date

11 years agoMerge branch 'upstream'
Carlos Alberto Lopez Perez [Mon, 1 Apr 2013 23:51:59 +0000 (01:51 +0200)]
Merge branch 'upstream'

11 years agoRevert outside debian/ commit 0d9bc69
Carlos Alberto Lopez Perez [Mon, 1 Apr 2013 23:51:24 +0000 (01:51 +0200)]
Revert outside debian/ commit 0d9bc69

 * Causes merge conflicts with upstream branch

11 years agoTag zfs-0.6.1
Brian Behlendorf [Mon, 25 Mar 2013 20:46:37 +0000 (13:46 -0700)]
Tag zfs-0.6.1

META file and release log updated.

Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
11 years agoInclude init scripts in packages
Brian Behlendorf [Tue, 26 Mar 2013 15:40:44 +0000 (08:40 -0700)]
Include init scripts in packages

The distribution specific init scripts where excluded from the
packaging when it was reworked.  The intention is to replace
them with systemd equivilants.  However, that work has not yet
been done and the init scripts are still useful so they have
been added back in to the packaging.

Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
11 years agoProvide ${kmodname}-devel-kmod for yum-builddep
Brian Behlendorf [Mon, 25 Mar 2013 18:28:18 +0000 (11:28 -0700)]
Provide ${kmodname}-devel-kmod for yum-builddep

In order to ensure that yum-builddep pulls in all the build
requirements a generic ${kmodname}-devel-kmod provides line is
added.  This allows a version of the development headers to be
included without requiring knowledge of the kernel version.

This is important because unlike rpmbuild which does correctly
expand the source rpm spec file, yum-builddep does not.  Without
this generic provides line mock which relies on yum-builddep is
unable to automatically satisfy the dependency.

Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
11 years agoUse 'git describe' for working builds
Brian Behlendorf [Fri, 22 Mar 2013 21:46:11 +0000 (14:46 -0700)]
Use 'git describe' for working builds

When building from an arbitrary commit in the git tree it's useful
for the resulting packages to be uniquely identifiable.  Therefore,
the build system has been updated to detect if your compiling in
git tree.

If you are building in a git tree, and there are commits after the
last annotated tag.  Then the <id>-<hash> component of 'git describe'
will be used to overwrite the 'Release:' field in the META file.

The only tricky part is that to ensure the 'make dist' tarball is
built using the correct release.  A dist-hook was added to the top
level make file to rewrite the META file using the correct release.

Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
11 years agoFix minor typos and update marketing copy.
Darik Horn [Thu, 21 Mar 2013 03:52:53 +0000 (22:52 -0500)]
Fix minor typos and update marketing copy.

Correct spelling mistakes in the AUTHORS and DISCLAIMER files, and
update the README.markdown file to credit Illumos and mention that
the ZPL is finished.

The README.markdown file is also the first impression for a handful
of new users that discover ZoL through a web search because it
doubles as the splash page for the Github repository. The build blurbs
are therefore removed because these people should be encouraged to
visit the regular home page before installing the product.

Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
Closes #1366

11 years agoUse requested kernel for dkms builds
Brian Behlendorf [Wed, 20 Mar 2013 22:15:05 +0000 (15:15 -0700)]
Use requested kernel for dkms builds

The --with-linux and --with-linux-obj options must be specified
as part of the dkms build otherwise the package will be built
against the running kernel.

Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
11 years agoUse BUILD_DEPENDS option for dkms builds
Brian Behlendorf [Wed, 20 Mar 2013 18:01:48 +0000 (11:01 -0700)]
Use BUILD_DEPENDS option for dkms builds

Support was added to dkms so build dependencies can be specified.
This allows us to ensure that the spl package will always be built
before the zfs package.  Those patches have not yet been merged
upstream but they are available in the zfsonlinux/dkms repository.

Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
11 years agoRemove zfs-dkms conflict with zfs-kmod
Brian Behlendorf [Wed, 20 Mar 2013 18:28:00 +0000 (11:28 -0700)]
Remove zfs-dkms conflict with zfs-kmod

Because the zfs-dkms package also provides zfs-kmod for the
zfs user package yum flags this as a conflict.  To avoid the
problem remove the Conflicts tag from zfs-dkms and just rely
on the one in zfs-kmod.

  zfs-dkms-0.6.0-rc14.fc18.noarch has installed conflicts
    zfs-kmod: zfs-dkms-0.6.0-rc14.fc18.noarch

Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
11 years agoRefresh dracut module setup
Brian Behlendorf [Wed, 20 Mar 2013 18:25:50 +0000 (11:25 -0700)]
Refresh dracut module setup

60-zpool.rules was retired some time ago in favor of 69-vdev.rules.
Additionally, there is no guarentee a zpool.cache file exists so
only install it conditionally upon its existance.

Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
11 years agoAdd missing dependencies
Brian Behlendorf [Wed, 20 Mar 2013 02:25:01 +0000 (19:25 -0700)]
Add missing dependencies

The spl, zfs-test, and zfs-dracut packages should be pulled in
by the core zfs package.  This allows all the required zfs packages
to be installed from a yum repository by running:

  yum install zfs

Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
11 years agoAdd spl-dkms dependency to zfs-dkms
Brian Behlendorf [Tue, 19 Mar 2013 22:55:44 +0000 (15:55 -0700)]
Add spl-dkms dependency to zfs-dkms

Adding the 'spl-dkms = VERSION' dependency to the zfs-dkms
package ensures the spl will be installed before zfs.  This
cleanly handles the initial 'yum localinstall' case.

However, this does not address the dkms rebuilds caused by
a new kernel being installed.  For that we still rely on the
clunky  --with-spl-timeout=<timeout> configure option which
allows the zfs compilation to be briefly delayed while the
spl components are built.

Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
11 years agoCreate fsck.zfs and zhack man pages.
Darik Horn [Sat, 16 Mar 2013 20:54:32 +0000 (15:54 -0500)]
Create fsck.zfs and zhack man pages.

The automake templates have been updated to install them,
and the existing packaging will automatically include them.

Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
Supplements #518

11 years agoAdd zio_ddt_free()+ddt_phys_decref() error handling
Brian Behlendorf [Tue, 19 Mar 2013 19:05:08 +0000 (12:05 -0700)]
Add zio_ddt_free()+ddt_phys_decref() error handling

The assumption in zio_ddt_free() is that ddt_phys_select() must
always find a match.  However, if that fails due to a damaged
DDT or some other reason the code will NULL dereference in
ddt_phys_decref().

While this should never happen it has been observed on various
platforms.  The result is that unless your willing to patch the
ZFS code the pool is inaccessible.  Therefore, we're choosing
to more gracefully handle this case rather than leave it fatal.

http://mail.opensolaris.org/pipermail/zfs-discuss/2012-February/050972.html

Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
Closes #1308

11 years agoAdd metaslab_debug option
Brian Behlendorf [Mon, 18 Mar 2013 20:03:09 +0000 (13:03 -0700)]
Add metaslab_debug option

Enabling metaslab debugging will prevent space maps from being
automatically unloaded.  This can significantly increase the
memory footprint but being able to dynamically control this is
helpful for debugging and certain performance testing.

Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
11 years agoRefresh RPM packaging
Brian Behlendorf [Sun, 17 Feb 2013 20:10:17 +0000 (12:10 -0800)]
Refresh RPM packaging

Refresh the existing RPM packaging to conform to the 'Fedora
Packaging Guidelines'.  This includes adopting the kmods2
packaging standard which is used fod kmods distributed by
rpmfusion for Fedora/RHEL.

  http://fedoraproject.org/wiki/Packaging:Guidelines
  http://rpmfusion.org/Packaging/KernelModules/Kmods2

While the spec files have been entirely rewritten from a
user perspective the only major changes are:

* The Fedora packages now have a build dependency on the
  rpmfusion repositories.  The generic kmod packages also
  have a new dependency on kmodtool-1.22 but it is bundled
  with the source rpm so no additional packages are needed.

* The kernel binary module packages have been renamed from
  zfs-modules-* to kmod-zfs-* as specificed by kmods2.

* The is now a common kmod-zfs-devel-* package in addition
  to the per-kernel devel packages.  The common package
  contains the development headers while the per-kernel
  package contains kernel specific build products.

Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
Closes #1341

11 years agoMove example for sudo from /etc/sudoers.d/zfs to dh_installexamples
Carlos Alberto Lopez Perez [Sat, 16 Mar 2013 22:42:35 +0000 (23:42 +0100)]
Move example for sudo from /etc/sudoers.d/zfs to dh_installexamples

 * We shouldn't be providing an example file for sudo on /etc/sudoers.d
   because if the users modifies such file, and we modify the provided
   example, on the next upgrade the user will be asked what to do.

 * The right place is /usr/share/doc/$package/examples that is were we
   also ship the other examples provided by upstream.

11 years agoFix lintian warning maintainer-script-without-set-e
Carlos Alberto Lopez Perez [Sat, 16 Mar 2013 20:51:43 +0000 (21:51 +0100)]
Fix lintian warning maintainer-script-without-set-e

11 years agoFix debian/watch
Carlos Alberto Lopez Perez [Sat, 16 Mar 2013 20:44:57 +0000 (21:44 +0100)]
Fix debian/watch

 * Only report non-rc versions.
 * uscan --report-status now says:
      Newest version on remote site is 0.5.2

11 years agoConfigure --with-spl{-obj} auto-detect cleanup
Brian Behlendorf [Fri, 22 Feb 2013 23:50:00 +0000 (15:50 -0800)]
Configure --with-spl{-obj} auto-detect cleanup

Because the install location for the spl/zfs-devel headers was
changed we need to refresh the auto-detect code.  Note that
for packaging which already explicitly calls --with-spl{-obj}
nothing has changed.

The updated code is now structured like that in ZFS_AC_KERNEL
and should be cleaner and easier to maintain.  In addition,
it's stricter about detecting a valid source and object
directory.  It requires:

* The source directory contains the file 'spl.release'
* The object directory contains the file 'spl_config.h'
* The following paths will be checked.  Notice the /var/lib/
  and /usr/src paths require that the spl and zfs version be
  matched.  This is done to prevent accidentally mixing releases.

        dnl # 1) /var/lib/dkms/spl/<version>/build
        dnl # 2) /usr/src/spl-<version>/<kernel-version>
        dnl # 3) /usr/src/spl-<version>
        dnl # 4) ../spl
        dnl # 5) /usr/src/kernels/<kernel-version>

Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
11 years agoChange zfs-kmod-devel install path
Brian Behlendorf [Thu, 21 Feb 2013 23:10:11 +0000 (15:10 -0800)]
Change zfs-kmod-devel install path

Install the common zfs kernel development headers under
/usr/src/zfs-<version>/ rather than in a kernel specific
directory.  The kernel specific build products such as
zfs_config.h and Modules.symvers are left installed under
/usr/src/zfs-<version>/<kernel>.

This was done to be consistent with where dkms expects
kernel module source to be packaged.  It also allows for
a common zfs-kmod-devel package which includes the headers,
and per-kernel zfs-kmod-devel-<kernel> packages.

Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
11 years agoRemove COPYING
Brian Behlendorf [Fri, 8 Mar 2013 21:06:04 +0000 (13:06 -0800)]
Remove COPYING

There's no reason to keep this file around it's redundant with
the COPYRIGHT and OPENSOLARIS.LICENSE files and causes lintian
to emit an extra-license-file warning.

Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
11 years agoCreate mount.zfs, zinject, and zpios man pages.
Darik Horn [Tue, 12 Mar 2013 19:40:55 +0000 (14:40 -0500)]
Create mount.zfs, zinject, and zpios man pages.

And update the automake templates to install them.

Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
Closes #518

11 years agoImport ztest.1 man page.
Michael Gebetsroither [Tue, 12 Mar 2013 20:26:50 +0000 (15:26 -0500)]
Import ztest.1 man page.

Create a nroff man page for ZoL from:

  http://grml.org/online-docs/ztest.1.html

Which itself was derived from:

  http://opensolaris.org/os/community/zfs/ztest/

Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
Issue #518

11 years agoLinux 3.9 compat: Undefine GCC_VERSION
Richard Yao [Mon, 4 Mar 2013 20:52:11 +0000 (15:52 -0500)]
Linux 3.9 compat: Undefine GCC_VERSION

The mainline kernel started defining GCC_VERSION with commit
torvalds/linux@3f3f8d2f48acfd8ed3b8e6b7377935da57b27b16.
Unfortunately, LZ4 also defines this macro, but the two
defintions are incompatible. We undefine GCC_VERSION in lz4.c
to handle this.

Signed-off-by: Richard Yao <ryao@cs.stonybrook.edu>
Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
Closes #1339

11 years agoMerge branch 'build-system'
Brian Behlendorf [Wed, 6 Mar 2013 23:47:38 +0000 (15:47 -0800)]
Merge branch 'build-system'

11 years agoFix zdb.8 macro warning
Brian Behlendorf [Fri, 22 Feb 2013 19:28:28 +0000 (11:28 -0800)]
Fix zdb.8 macro warning

Detected by rpmlint the 'rpool/export/home' section was being
interpretted by troff as an undefined macro.  This resulted
in the 'rpool/export/home' output being omitted from 'man zdb'.

This was caused by starting the line with a ' character.  By
moving the 'in' down to the next line we're able to fix it.

  zfs.x86_64: W: manual-page-warning /usr/share/man/man8/zdb.8.gz
  450: warning: macro `rpool/export/home'' not defined

Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
11 years agoRefresh links to web site
Ned Bass [Sun, 17 Feb 2013 19:31:20 +0000 (11:31 -0800)]
Refresh links to web site

A few files still refer to @behlendorf's private fork on
github.  Use the primary web site URL instead.  Two typos
are also corrected.

Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
11 years agoRetire ZFS.RELEASE file
Brian Behlendorf [Sun, 17 Feb 2013 19:16:22 +0000 (11:16 -0800)]
Retire ZFS.RELEASE file

The ZFS.RELEASE file was originally added to document which
version of OpenSolaris the ZoL code was based on.  However,
that's no longer particularly important or useful.  We'll
likely never see a new onnv_* drop from Solaris, and even
if we do the ZoL changes are now extensive enough they
could not be easily applied.  We now treat Illumos as the
official upstream and cherry pick the patches we need.

Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
11 years agoRemove ARCH packaging
Brian Behlendorf [Sun, 17 Feb 2013 19:11:41 +0000 (11:11 -0800)]
Remove ARCH packaging

The kernel modules are now available in the Arch User Repository
(AUR) via zfs.  Since their packaging is maintained and superior
to ours it is being removed from the tree.

  https://wiki.archlinux.org/index.php/ZFS

Now that various distributions are picking up the packages we
should eventually be able to remove most of this infrastructure.
Packaging belongs with the distributions not upstream.

Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
11 years agoAdd --with-dracutdir configure option
Brian Behlendorf [Fri, 22 Feb 2013 18:16:16 +0000 (10:16 -0800)]
Add --with-dracutdir configure option

The standard dracut directory has moved from /usr/share/dracut to
/usr/lib/dracut.  To ensure the dracut modules get installed in
the correct location provide a --with-dracutdir configure option
to set the path.

The default install location has been updated to /usr/lib/dracut
which is used by more current versions of Fedora.  However, this
default is overriden by the RPM packaging for consistency.

Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
11 years agoAdd KMODDIR to install target
Brian Behlendorf [Sun, 17 Feb 2013 19:05:11 +0000 (11:05 -0800)]
Add KMODDIR to install target

Provide a mechanism to control the directory name the modules
are installed in.  The kernel privdes INSTALL_MOD_DIR for
this but it was hardcoded to be 'addon/zfs'.

Add a KMODDIR variable which can be passed to 'make install'
to override the default directory name.  While we're here
change the default from 'addon/zfs' to 'extra' which is the
kernel.org default.

Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
11 years agoFix zfs_config.h install permissions
Brian Behlendorf [Fri, 8 Feb 2013 21:51:27 +0000 (13:51 -0800)]
Fix zfs_config.h install permissions

The default permissions used by install are 755.  Since this
file isn't executable 644 is more appropriate.

Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
11 years agoReplace libexecdir with datadir
Brian Behlendorf [Fri, 8 Feb 2013 18:01:41 +0000 (10:01 -0800)]
Replace libexecdir with datadir

According to the FHS.  Testing scripts and examples which are all
architecture independent should be installed in a subdirectory
under /usr/share.

  http://www.pathname.com/fhs/2.2/fhs-4.11.html

Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
11 years agoAdd snapdev=[hidden|visible] dataset property
Eric Dillmann [Wed, 13 Feb 2013 23:11:59 +0000 (00:11 +0100)]
Add snapdev=[hidden|visible] dataset property

The new snapdev dataset property may be set to control the
visibility of zvol snapshot devices.  By default this value
is set to 'hidden' which will prevent zvol snapshots from
appearing under /dev/zvol/ and /dev/<dataset>/.  When set to
'visible' all zvol snapshots for the dataset will be visible.

This functionality was largely added because when automatic
snapshoting is enabled large numbers of read-only zvol snapshots
will be created.  When creating these devices the kernel will
attempt to read their partition tables, and blkid will attempt
to identify any filesystems on those partitions.  This leads
to a variety of issues:

1) The zvol partition tables will be read in the context of
   the `modprobe zfs` for automatically imported pools.  This
   is undesirable and should be done asynchronously, but for
   now reducing the number of visible devices helps.

2) Udev expects to be able to complete its work for a new
   block devices fairly quickly.  When many zvol devices are
   added at the same time this is no longer be true.  It can
   lead to udev timeouts and missing /dev/zvol links.

3) Simply having lots of devices in /dev/ can be aukward from
   a management standpoint.  Hidding the devices your unlikely
   to ever use helps with this.  Any snapshot device which is
   needed can be made visible by changing the snapdev property.

NOTE: This patch changes the default behavior for zvols which
      was effectively 'snapdev=visible'.

Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
Closes #1235
Closes #945
Issue #956
Issue #756

11 years agoMerge zvol.c changes from PSARC 2010/306 Read-only ZFS pools
George Wilson [Sun, 3 Mar 2013 05:57:39 +0000 (00:57 -0500)]
Merge zvol.c changes from PSARC 2010/306 Read-only ZFS pools

The changes to zvol.c were never merged from the last onnv_147
bulk update.  This was because zvol.c was largely rewritten
for Linux making it fairly easy to miss these sorts of changes.

This causes a regression when importing a zpool with zvols
read-only.  This does not impact pool which only contain
filesystem datasets.

References:
  illumos/illumos-gate@f9af39b

Signed-off-by: Richard Yao <ryao@cs.stonybrook.edu>
Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
Closes #1332
Closes #1333

11 years agoConstify structures containing function pointers
Richard Yao [Fri, 15 Feb 2013 04:37:43 +0000 (23:37 -0500)]
Constify structures containing function pointers

The PaX team modified the kernel's modpost to report writeable function
pointers as section mismatches because they are potential exploit
targets. We could ignore the warnings, but their presence can obscure
actual issues. Proper const correctness can also catch programming
mistakes.

Building the kernel modules against a PaX/GrSecurity patched Linux 3.4.2
kernel reports 133 section mismatches prior to this patch. This patch
eliminates 130 of them. The quantity of writeable function pointers
eliminated by constifying each structure is as follows:

vdev_opts_t             52
zil_replay_func_t       24
zio_compress_info_t     24
zio_checksum_info_t     9
space_map_ops_t         7
arc_byteswap_func_t     5

The remaining 3 writeable function pointers cannot be addressed by this
patch. 2 of them are in zpl_fs_type. The kernel's sget function requires
that this be non-const. The final writeable function pointer is created
by SPL_SHRINKER_DECLARE. The kernel's set_shrinker() and
remove_shrinker() functions also require that this be non-const.

Signed-off-by: Richard Yao <ryao@cs.stonybrook.edu>
Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
Closes #1300

11 years agoEliminate runtime function pointer mods in autotools checks
Richard Yao [Thu, 14 Feb 2013 23:54:04 +0000 (18:54 -0500)]
Eliminate runtime function pointer mods in autotools checks

PaX/GrSecurity patched kernels implement a dialect of C that relies on a
GCC plugin for enforcement. A basic idea in this dialect is that
function pointers in structures should not change during runtime.
This causes code that modifies function pointers at runtime to fail to
compile in many instances. The autotools checks rely on whether or
not small test cases compile against a given kernel. Some
autotools checks assume some default case if other cases fail. When one
of these autotools checks tests a PaX/GrSecurity patched kernel by
modifying a function pointer at runtime, the default case will be used.

Early detection of such situations is possible by relying on compiler
warnings, which are compiler errors when --enable-debug is used.
Unfortunately, very few people build ZFS with --enable-debug. The more
common situation is that these issues manifest themselves as runtime
failures in the form of NULL pointer exceptions.

Previous patches that addressed such issues with PaX/GrSecurity
compatibility largely relied on rewriting autotools checks to avoid
runtime function pointer modification or the addition of PaX/GrSecurity
specific checks. This patch takes the previous work to its logical
conclusion by eliminating the use of runtime function pointer
modification. This permits the removal of PaX-specific autotools checks
in favor of ones that work across all supported kernels.

This should resolve issues that were reported to occur with
PaX/GrSecurity-patched Linux 3.7.5 kernels on Gentoo Linux.

https://bugs.gentoo.org/show_bug.cgi?id=457176

We should be able to prevent future regressions in PaX/GrSecurity
compatibility by ensuring that all changes to ZFSOnLinux avoid runtime
function pointer modification. At the same time, this does not solve the
issue of silent failures triggering default cases in the autotools
check, which is what permitted these regressions to become runtime
failures in the first place. This will need to be addressed in a future
patch.

Reported-by: Marcin Mirosław <bug@mejor.pl>
Signed-off-by: Richard Yao <ryao@cs.stonybrook.edu>
Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
Closes #1300

11 years agoFix hot spares
Brian Behlendorf [Wed, 27 Feb 2013 01:02:27 +0000 (17:02 -0800)]
Fix hot spares

The issue with hot spares in ZoL is because it opens all leaf
vdevs exclusively (O_EXCL).  On Linux, exclusive opens cause
subsequent exclusive opens to fail with EBUSY.

This could be resolved by not opening any of the devices
exclusively, which is what Illumos does, but the additional
protection offered by exclusive opens is desirable.  It cleanly
prevents you from accidentally adding an in-use non-ZFS device
to your pool.

To fix this we very slightly relaxed the usage of O_EXCL in
the following ways.

1) Functions which open the device but only read had the
   O_EXCL flag removed and were updated to use O_RDONLY.

2) A common holder was added to the vdev disk code.  This
   allow the ZFS code to internally open the device multiple
   times but non-ZFS callers may not.

3) An exception was added to make_disks() for hot spare when
   creating partition tables.  For hot spare devices which
   are already opened exclusively we skip creating the partition
   table because this must already have been done when the disk
   was originally added as a hot spare.

Additional minor changes include fixing check_in_use() to use
a partition instead of a slice suffix.  And is_spare() was moved
above make_disks() to avoid adding a forward reference.

Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
Closes #250

11 years agoDelete void zfs-dkms.prerm
Carlos Alberto Lopez Perez [Thu, 28 Feb 2013 21:48:53 +0000 (22:48 +0100)]
Delete void zfs-dkms.prerm

 * There is not need to have empty skeleton {pre,post}{inst,rm} files
 * debhelper will create this at build time automatically when needed

 * debhelper(7)

   Automatic generation of debian install scripts:

       Some debhelper commands will automatically generate parts of debian
       maintainer scripts. If you want these automatically generated things
       included in your existing debian maintainer scripts, then you need to
       add "#DEBHELPER#" to your scripts, in the place the code should be
       added.  "#DEBHELPER#" will be replaced by any auto-generated code when
       you run dh_installdeb.

       If a script does not exist at all and debhelper needs to add something
       to it, then debhelper will create the complete script.

11 years agoRemove wholedisk check from vdev_disk_open()
Brian Behlendorf [Tue, 26 Feb 2013 19:28:14 +0000 (11:28 -0800)]
Remove wholedisk check from vdev_disk_open()

As described by the comment and enforced the by assertion the
v->vdev_wholedisk will never be -1.  The wholedisk handling
is performed by the user space utilities.  To prevent confusion
this dead code is being removed.

Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
11 years agoLeaf vdevs should not be reopened
Brian Behlendorf [Tue, 26 Feb 2013 19:25:55 +0000 (11:25 -0800)]
Leaf vdevs should not be reopened

When vdev_disk.c was implemented for Linux we failed to handle the
reopen case.  According to the vdev_reopen() comment leaf vdevs should
not be closed or opened when v->vdev_reopening is set.  Under Linux
we would always close and open the device.

This issue was only noticed when a 'zpool scrub' command was run while
the leaf vdev device names in /dev/disk/by-vdev were missing.  The
scrub command calls vdev_reopen() which caused the vdevs to be closed
but they couldn't be reopened due to the missing links.  The result
was that all the vdevs were marked unavailable and the pool was
halted due to failmode=wait.

This patch adds the missing functionality in a similiar fashion to
to the Illumos code.

Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
11 years ago-x shouldn't warn about old on-disk format or unavailable features
Tim Connors [Mon, 25 Feb 2013 21:00:45 +0000 (08:00 +1100)]
-x shouldn't warn about old on-disk format or unavailable features

`zpool status -x` should only flag errors or where the pool is
unavailable.  If it imported fine but isn't using the latest features
available in the code, that's not an error.

Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
Closes #1319

11 years agoRevert a comment change on $(MAKE)file
Aron Xu [Thu, 28 Feb 2013 12:20:59 +0000 (20:20 +0800)]
Revert a comment change on $(MAKE)file

11 years agoRemove the bio_empty_barrier() check.
Etienne Dechamps [Sun, 24 Feb 2013 11:22:07 +0000 (11:22 +0000)]
Remove the bio_empty_barrier() check.

To determine whether the kernel is capable of handling empty barrier
BIOs, we check for the presence of the bio_empty_barrier() macro,
which was introduced in 2.6.24. If this macro is defined, then we can
flush disk vdevs; if it isn't, then flushing is disabled.

Unfortunately, the bio_empty_barrier() macro was removed in 2.6.37,
even though the kernel is still capable of handling empty barrier BIOs.

As a result, flushing is effectively disabled on kernels >= 2.6.37,
meaning that starting from this kernel version, zfs doesn't use
barriers to guarantee on-disk data consistency. This is quite bad and
can lead to potential data corruption on power failures.

This patch fixes the issue by removing the configure check for
bio_empty_barrier(), as we don't support kernels <= 2.6.24 anymore.

Thanks to Richard Kojedzinszky for catching this nasty bug.

Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
Closes #1318

11 years agoUse -Werror for all kernel configure tests.
Etienne Dechamps [Sun, 24 Feb 2013 12:42:28 +0000 (12:42 +0000)]
Use -Werror for all kernel configure tests.

As a matter of fact, we're already using -Werror for most tests because
of a bug in kernel-bio-empty-barrier.m4 which sets -Werror without
reverting it afterwards. This meant that all tests which ran after this
one was using -Werror.

This patch simply makes it clear that we're using -Werror and makes
the code more readable and more predictable.

Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
Closes #1317

11 years agoEnable zfs_arc_memory_throttle_disable by default
Brian Behlendorf [Thu, 21 Feb 2013 20:14:44 +0000 (12:14 -0800)]
Enable zfs_arc_memory_throttle_disable by default

The zfs_arc_memory_throttle_disable module option was introduced
by commit 0c5493d47059f25ce9dbf20c9fe87655f55102a1 to resolve a
memory miscalculation which could result in the txg_sync thread
spinning.

When this was first introduced the default behavior was left
unchanged until enough real world usage confirmed there were no
unexpected issues.  We've now reached that point.  Linux's
direct reclaim is working as expected so we're enabling this
behavior by default.

This helps pave the way to retire the spl_kmem_availrmem()
functionality in the SPL layer.  This was the only caller.

Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
Issue #938

11 years agoRemove patches that were used to clean manually the DKMS source tree.
Carlos Alberto Lopez Perez [Wed, 20 Feb 2013 22:53:37 +0000 (23:53 +0100)]
Remove patches that were used to clean manually the DKMS source tree.

  * Now this is done automatically on debian/rules
  * See commit e6fd8d0f0eba638927cecb1374b80481ac6a2390

11 years agoExplicity select what is copied inside the DKMS source tree
Carlos Alberto Lopez Perez [Wed, 20 Feb 2013 22:51:32 +0000 (23:51 +0100)]
Explicity select what is copied inside the DKMS source tree

 * We use the variable DKMSFILES to explicity select wich files
   or directories are copied inside the DKMS source tree.

 * Once copied. We rewrite configure.ac with awk to remove the
   userland/misc components and only keep the kernel stuff that
   is needed by DKMS.

   * The awk lines deletes from inside AC_CONFIG_FILES([]) of configure.ac
     everything except:
(Makefile$|include/|module/|*.release$|dkms.conf$)

   * Then we run ./autogen.sh to generate the configure scripts
     inside the DKMS source tree

 * This allows us to ship a clean DKMS source tree with *only* the kernel
   components and free from the userland/misc ones (ex: splat)

    * Prevents manual build on the DKMS source tree.

 * This will allow to remove practically all patches from debian/patches
   in the next commit that were used previously to clean this stuff manually.

11 years agoPrevent fatal error on zfs-dkms.postinst when update-notifier-common is not installed
Carlos Alberto Lopez Perez [Wed, 20 Feb 2013 22:17:28 +0000 (23:17 +0100)]
Prevent fatal error on zfs-dkms.postinst when update-notifier-common is not installed

 * The postinst script is ran with "set -e" which means that it will abort on any
   command returning non-zero and therefore the package will fail to install.

   * false && anything => false
     * Ex:
            clopez ~ $ false && true
            clopez ~ $ echo $?
            1

  * The check should be done with if-then-fi
     * Ex:
            clopez ~ $ if false; then anything; fi
            clopez ~ $ echo $?
            0

11 years agoAdd missing lsb-release dependency to Build-Depends and zfs-dkms:Depends
Carlos Alberto Lopez Perez [Wed, 20 Feb 2013 22:14:58 +0000 (23:14 +0100)]
Add missing lsb-release dependency to Build-Depends and zfs-dkms:Depends

 * lsb_release is executed both on debian/rules when building the package
   and on the DKMS script when the user builds the kernel module

11 years agodh_installinit rules should be inside override_dh_installinit target
Carlos Alberto Lopez Perez [Wed, 20 Feb 2013 21:36:57 +0000 (22:36 +0100)]
dh_installinit rules should be inside override_dh_installinit target

11 years agoUse dh --with dkms
Carlos Alberto Lopez Perez [Wed, 20 Feb 2013 21:34:09 +0000 (22:34 +0100)]
Use dh --with dkms

11 years agoUse $(MAKE) instead of make:
Carlos Alberto Lopez Perez [Wed, 20 Feb 2013 21:31:15 +0000 (22:31 +0100)]
Use $(MAKE) instead of make:

  * This allows the environment variables (MAKEFLAGS) and arguments
    to be correctly inherited by the submakes.

11 years agoFix broken RPATH in spec file
Brian Behlendorf [Fri, 8 Feb 2013 00:33:06 +0000 (16:33 -0800)]
Fix broken RPATH in spec file

Rather then setting _prefix=/ and having to override all the
default install locations.  It's cleaner, and more understandable,
to leave prefix=/usr and only override _sbindir and _libdir.  This
fixes three issues:

* The commands no longer get built with an incorrect rpath for
  the libraries.   This is good because fixing this sort of
  thing is required by the Fedora packaging guidelines.

    http://fedoraproject.org/wiki/Packaging:Guidelines#Beware_of_Rpath

* The various AUTHORS, COPYRIGHT, etc files are now correctly
  installed under /usr/share/doc instead of /share/doc.

* _libexecdir is now handled properly for each distribution.
  Fedora/RHEL=/usr/libexec, OpenSUSE/SLES=/usr/lib, Debian=/usr/lib/rpm

Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
Closes #1058

11 years agoMake spa.c assertions catch unsupported pre-feature flag pool versions
Richard Yao [Sun, 10 Feb 2013 00:25:55 +0000 (19:25 -0500)]
Make spa.c assertions catch unsupported pre-feature flag pool versions

A couple of assertions in spa.c were designed to prevent the use of
invalid pool versions. They were written under the assumption
that all valid pools are less than SPA_VERSION. Since feature flags
jumped from 28 to 5000, any numbers in the range 28 to 5000
non-inclusive will fail to trigger them.  We switch to the new
SPA_VERSION_IS_SUPPORTED macro to correct this.

Signed-off-by: Richard Yao <ryao@cs.stonybrook.edu>
Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
Closes #1282

11 years agoAdd explicit MAXNAMELEN check
Brian Behlendorf [Mon, 11 Feb 2013 20:55:24 +0000 (12:55 -0800)]
Add explicit MAXNAMELEN check

It turns out that the Linux VFS doesn't strictly handle all cases
where a component path name exceeds MAXNAMELEN.  It does however
appear to correctly handle MAXPATHLEN for us.

The right way to handle this appears to be to add an explicit
check to the zpl_lookup() function.  Several in-tree filesystems
handle this case the same way.

Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
Closes #1279

11 years agoUpdate the zfs.8 "ZFS Volumes as Swap" section
Brian Behlendorf [Thu, 7 Feb 2013 22:15:53 +0000 (14:15 -0800)]
Update the zfs.8 "ZFS Volumes as Swap" section

As of 0.6.0-rc11 using ZFS volumes as Linux swap devices is
supported.  Swapping to files in ZFS filesystems is not.

Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
Closes #1189

11 years agoSwitch KM_SLEEP to KM_PUSHPAGE
Ned Bass [Wed, 6 Feb 2013 18:15:13 +0000 (10:15 -0800)]
Switch KM_SLEEP to KM_PUSHPAGE

Two more locations where KM_SLEEP was used in a call which must
use KM_PUSHPAGE were found while using the zpool upgrade command.
See commit b8d06fc for additional details.

Also make a small correction to the comment block above
dsl_dir_open_spa().

Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
Closes #1268

11 years agoRemove unused machelf.h header
Brian Behlendorf [Tue, 5 Feb 2013 23:07:09 +0000 (15:07 -0800)]
Remove unused machelf.h header

The machelf.h header is never included by anything in the zfs
build process.  It is all effectively dead code which can be
safely removed.

Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
Closes #1265

11 years agoFix function relocations in libzpool
Richard Yao [Tue, 5 Feb 2013 23:14:30 +0000 (18:14 -0500)]
Fix function relocations in libzpool

binutils 2.23.1 fails in situations that generate function relocations
on PowerPC and possibly other architectures. This causes linking of
libzpool to fail because it depends on libnvpair. We add a dependency on
libnvpair to lib/libzpool/Makefile.am to correct that.

Signed-off-by: Richard Yao <ryao@cs.stonybrook.edu>
Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
Closes #1267

11 years agoCast 'zfs bad bloc' to ULL for x86
Brian Behlendorf [Tue, 5 Feb 2013 00:35:54 +0000 (16:35 -0800)]
Cast 'zfs bad bloc' to ULL for x86

Explicitly case this value to an unsigned long long for 32-bit
systems to inform the compiler that a long type should not be
used.  Otherwise we get the following compiler error:

  dmu_send.c:376: error: integer constant is too large for
  ‘long’ type

Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
11 years agoFix 1M references in zpool-features.5
Brian Behlendorf [Mon, 4 Feb 2013 20:35:25 +0000 (12:35 -0800)]
Fix 1M references in zpool-features.5

The zpool-features(5) man page should reference the Linux zfs(8)
and zpool(8) man pages.  The 1M convention isn't used on Linux.

Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
Closes #1184

11 years agoAdd zpool-features(5) man page
Brian Behlendorf [Mon, 4 Feb 2013 20:08:25 +0000 (12:08 -0800)]
Add zpool-features(5) man page

The zpool-features(5) man page was accidentally omitted from the
build target when feature flags was merged.  As a result it doesn't
get installed as part of 'make install' so none of the packages
include this man page.

Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
Closes #1262

11 years agoPPA 0.6.0.97-0ubuntu1 release. (rc14)
Darik Horn [Mon, 4 Feb 2013 04:14:39 +0000 (22:14 -0600)]
PPA 0.6.0.97-0ubuntu1 release. (rc14)

Bump the version number to reset the builders.

Closes: zfsonlinux/zfs#1258
11 years agoPPA 0.6.0.96-0ubuntu1 release. (rc14)
Darik Horn [Sat, 2 Feb 2013 23:28:31 +0000 (17:28 -0600)]
PPA 0.6.0.96-0ubuntu1 release. (rc14)

11 years agoAdd vdev_id.conf files to the examples manifest.
Darik Horn [Sat, 2 Feb 2013 23:20:52 +0000 (17:20 -0600)]
Add vdev_id.conf files to the examples manifest.