Bug#780308: zfs-fuse: zfs list -t snapshot missing entries

2015-03-11 Thread Michael Klein
Package: zfs-fuse
Version: 0.7.0-12
Severity: important
Tags: upstream patch

Dear Maintainer,

I see exactly the behavior described in 
https://groups.google.com/forum/#!topic/zfs-fuse/-BtjGFUPOyk:

Removing the com.sun:auto-snapshot-desc property as descibed in the 
command by user hornowitz did not help for me, though.

# zfs list -r -t snapshot -H zpool | wc -l
504

# zdb -d zpool | grep ^Dataset .*@  | wc -l
913

I can list any property of the missing snapshots if I name the snapshot 
on the command line, it exists but is just missing in the output of zfs 
list -t snapshot fs.

After some debugging, I found the root cause in src/lib/libzfs/libzfs_dataset.c:

2425 static int
2426 zfs_do_list_ioctl(zfs_handle_t *zhp, int arg, zfs_cmd_t *zc)
2427 {
2428 int rc;
2429 uint64_torig_cookie;
2430
2431 orig_cookie = zc-zc_cookie;
2432 top:
2433 (void) strlcpy(zc-zc_name, zhp-zfs_name, sizeof (zc-zc_name));
2434 rc = ioctl(zhp-zfs_hdl-libzfs_fd, arg, zc);
2435
2436 if (rc == -1) {
2437 switch (errno) {
2438 case ENOMEM:
2439 /* expand nvlist memory and try again */
2440 if (zcmd_expand_dst_nvlist(zhp-zfs_hdl, zc) != 0) {
2441 zcmd_free_nvlists(zc);
2442 return (-1);
2443 }


This code assumes ioctl() returns either 0 or -1, but I'm occasionally getting
12 (=ENOMEM) here.  After changing the condition in line 2436 to just if (rc)
and recompiling the zfs command the output of zfs list -r -t snapshot matches
the output of zdb.


Kind regards,
Michael




-- System Information:
Debian Release: 7.8
  APT prefers stable
  APT policy: (500, 'stable')
Architecture: armhf (armv7l)

Kernel: Linux 3.4.104+ (SMP w/2 CPU cores; PREEMPT)
Locale: LANG=C, LC_CTYPE=de_DE.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages zfs-fuse depends on:
ii  fuse 2.9.0-2+deb7u1
ii  libaio1  0.3.109-3
ii  libc62.13-38+deb7u8
ii  libfuse2 2.9.0-2+deb7u1
ii  libgcc1  1:4.7.2-5
ii  libssl1.0.0  1.0.1e-2+deb7u14
ii  lsb-base 4.1+Debian8+deb7u1
ii  zlib1g   1:1.2.7.dfsg-13

zfs-fuse recommends no packages.

Versions of packages zfs-fuse suggests:
pn  kpartx none
ii  nfs-kernel-server  1:1.2.6-4

-- Configuration Files:
/etc/zfs/zfsrc changed [not included]

-- no debconf information
--- ./src/lib/libzfs/libzfs_dataset.c.orig	2015-03-11 21:36:13.0 +0100
+++ ./src/lib/libzfs/libzfs_dataset.c	2015-03-11 21:36:24.0 +0100
@@ -2433,7 +2433,7 @@
 	(void) strlcpy(zc-zc_name, zhp-zfs_name, sizeof (zc-zc_name));
 	rc = ioctl(zhp-zfs_hdl-libzfs_fd, arg, zc);
 
-if (rc == -1) {
+if (rc) {
 		switch (errno) {
 		case ENOMEM:
 			/* expand nvlist memory and try again */


Bug#559501: (no subject)

2009-12-07 Thread Michael Klein

FWIW: same behaviour here, on x86.

No more crashes after disabling the SwitchProxy extension.

--
Michael

mich...@skua:~  ps -ef | grep msblast.exe

Puh, that was lucky!



--
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



Bug#558331: zfs-fuse: storage pool inaccessible after booting

2009-11-27 Thread Michael Klein
Package: zfs-fuse
Version: 0.6.0~beta+433snapshot-2
Severity: important

I can't access any storage pools after booting:

skua:~ # zpool status
connect: No such file or directory
Please make sure that the zfs-fuse daemon is running.
internal error: failed to initialize ZFS library

zfs-fuse daemon *is* running:

skua:~ # pgrep -l zfs-fuse
1754 zfs-fuse

but neither /var/run/zfs-fuse.pid nor /var/run/zfs/zfs_socket exists.

zfs-fuse is started before mountall-bootclean.sh (/etc/rcS.d/S35zfs-fuse 
resp. /etc/rcS.d/S36mountall-bootclean.sh), which cleans /var/run during 
boot, along with zfs-fuse's pid file and socket.

A possible workaround is to rename /etc/rcS.d/S35zfs-fuse so it runs 
after mountall-bootclean.sh.


-- System Information:
Debian Release: squeeze/sid
  APT prefers testing
  APT policy: (990, 'testing'), (500, 'unstable')
Architecture: i386 (i686)

Kernel: Linux 2.6.26-skua
Locale: LANG=de_DE.UTF-8, LC_CTYPE=de_DE.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages zfs-fuse depends on:
ii  fuse-utils 2.7.4-2   Filesystem in USErspace (utilities
ii  libaio10.3.107-7 Linux kernel AIO access library - 
ii  libc6  2.10.1-7  GNU C Library: Shared libraries
ii  libfuse2   2.7.4-2   Filesystem in USErspace library
ii  lsb-base   3.2-23Linux Standard Base 3.2 init scrip
ii  zlib1g 1:1.2.3.3.dfsg-15 compression library - runtime

zfs-fuse recommends no packages.

zfs-fuse suggests no packages.

-- no debconf information



-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



Bug#558005: rocksndiamonds: does not download game files

2009-11-25 Thread Michael Klein
Package: rocksndiamonds
Version: 3.2.6.1+dfsg1-5
Severity: important
Tags: patch

The postinst script does not download any game data files after 
configuring if /bin/sh is linked to /bin/dash;  the check for the
update-menus command uses a bash-only construct () to redirect both 
stdout and stderr.


-- System Information:
Debian Release: squeeze/sid
  APT prefers testing
  APT policy: (990, 'testing'), (500, 'unstable')
Architecture: i386 (i686)

Kernel: Linux 2.6.26-skua
Locale: LANG=de_DE.UTF-8, LC_CTYPE=de_DE.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages rocksndiamonds depends on:
ii  debconf [debconf-2.0]  1.5.28Debian configuration management sy
ii  libc6  2.10.1-7  GNU C Library: Shared libraries
ii  libsdl-image1.21.2.8-1   image loading library for Simple D
ii  libsdl-mixer1.21.2.8-6+b1mixer library for Simple DirectMed
ii  libsdl-net1.2  1.2.7-2   network library for Simple DirectM
ii  libsdl1.2debian1.2.13-5  Simple DirectMedia Layer
ii  p7zip  4.58~dfsg.1-1 7zr file archiver with high compre
ii  perl-modules   5.10.1-8  Core Perl modules
ii  unzip  6.0-1 De-archiver for .zip files
ii  wget   1.12-1.1  retrieves files from the web

rocksndiamonds recommends no packages.

rocksndiamonds suggests no packages.

-- debconf information:
* rocksndiamonds/begin: true
  rocksndiamonds/util_notfound:
  rocksndiamonds/error_download:
* rocksndiamonds/select_games: Legend Of Zelda
--- debian/postinst.in.orig 2009-11-25 21:47:59.184999666 +0100
+++ debian/postinst.in  2009-11-25 21:48:42.496995700 +0100
@@ -212,11 +212,11 @@
 
 if ($ARGV[0] eq 'configure')
 {
-system 'which update-menus /dev/null';
+system 'which update-menus /dev/null 21';
 if ($? == 0) 
 {
 print STDERR Update menu\n;
-system 'update-menus  /dev/null';
+system 'update-menus /dev/null 21';
 }
 }
 


Bug#356283: Not installable on powerpc, dup. files in xarchon and xarchon-theme-default

2006-03-10 Thread Michael Klein
Package: xarchon
Version: 0.50-9
Severity: normal

Hi,

the installation of xarchon fails with the following error:

  Unpacking xarchon (from .../xarchon_0.50-9_powerpc.deb) ...
  dpkg: error processing /var/cache/apt/archives/xarchon_0.50-9_powerpc.deb 
(--unpack):
   trying to overwrite 
`/usr/share/games/xarchon/archon/actors/light/archer/move.right.0.xpm', which 
is also in package xarchon-theme-default
  dpkg-deb: subprocess paste killed by signal (Broken pipe)
  Errors were encountered while processing:
   /var/cache/apt/archives/xarchon_0.50-9_powerpc.deb
  E: Sub-process /usr/bin/dpkg returned an error code (1)

Looking at the package contents on 
http://packages.debian.org/testing/games/xarchon/ it looks like the 
xarchon packages contains all the files from xarchon-theme-default as 
well, except for the i386 architecture


-- System Information:
Debian Release: 3.1
  APT prefers testing
  APT policy: (500, 'testing')
Architecture: powerpc (ppc)
Kernel: Linux 2.6.15-ibook
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)

Versions of packages xarchon depends on:
ii  libaudiofile0 0.2.6-6Open-source version of SGI's audio
ii  libc6 2.3.5-13   GNU C Library: Shared libraries an
ii  libesd0   0.2.36-3   Enlightened Sound Daemon - Shared 
ii  libgcc1   1:4.0.2-9  GCC support library
ii  libglib1.21.2.10-9   The GLib library of C routines
ii  libgtk1.2 1.2.10-17  The GIMP Toolkit set of widgets fo
ii  libice6   6.9.0.dfsg.1-4 Inter-Client Exchange library
ii  libsm66.9.0.dfsg.1-4 X Window System Session Management
ii  libstdc++64.0.2-9The GNU Standard C++ Library v3
ii  libx11-6  6.9.0.dfsg.1-4 X Window System protocol client li
ii  libxext6  6.9.0.dfsg.1-4 X Window System miscellaneous exte
ii  libxi66.9.0.dfsg.1-4 X Window System Input extension li
ii  libxpm4   6.9.0.dfsg.1-4 X pixmap library
pn  xarchon-themeNot found.
ii  xlibs 6.9.0.dfsg.1-4 X Window System client libraries m


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Bug#332478: dosemu: cannot override DOSDRIVE_D environment variable

2005-10-06 Thread Michael Klein
Package: dosemu
Version: 1.2.1-3
Severity: wishlist

Hi,

$DOSDRIVE_D is unconditionally set to $HOME in /usr/bin/dosemu and then 
evaluated in freedos' autoexec.bat.

A trivial change in the startup script makes it possible to override 
DOSDRIVE_D and map D: to some other location without any config file 
modifications.

Regards,

-- System Information:
Debian Release: 3.1
Architecture: i386 (i686)
Kernel: Linux 2.6.8-skua
Locale: LANG=de_DE.UTF-8, LC_CTYPE=de_DE.UTF-8 (charmap=UTF-8)

Versions of packages dosemu depends on:
ii  libc6  2.3.2.ds1-22  GNU C Library: Shared libraries an
ii  libx11-6   4.3.0.dfsg.1-14sarge1 X Window System protocol client li
ii  libxext6   4.3.0.dfsg.1-14sarge1 X Window System miscellaneous exte
ii  slang1 1.4.9dbs-8The S-Lang programming library - r
ii  xbase-clients  4.3.0.dfsg.1-14sarge1 miscellaneous X clients
ii  xlibs  4.3.0.dfsg.1-14sarge1 X Keyboard Extension (XKB) configu
ii  xutils 4.3.0.dfsg.1-14sarge1 X Window System utility programs

-- debconf information:
  dosemu/renamed:
* dosemu/freedos:
  dosemu/oldconf:
--- dosemu.distrib  2004-06-24 03:09:43.0 +0200
+++ dosemu  2005-10-06 19:30:03.172975402 +0200
@@ -168,8 +168,10 @@
   fi
 fi
 
-DOSDRIVE_D=$HOME
-export DOSDRIVE_D
+if [ -z $DOSDRIVE_D ]; then
+  DOSDRIVE_D=$HOME
+  export DOSDRIVE_D
+fi
 
 DSIG=
 exittrap='if [ $DSIG ]; then trap - $DSIG; kill -s $DSIG $$; fi'


Bug#301265: libgimp-perl: scratches and windify plugins are also affected - patch

2005-04-15 Thread Michael Klein
Package: libgimp-perl
Version: 2.0.dfsg-4
Followup-For: Bug #301265


Hi!

plug_in_mblur apparenly doesn't seem to handle the optional parameters 
Center X and Center Y. Adding two 0.0's at the end of each 
plug_in_mblur() makes all three plugins work again ;-)

Cheers,

-- System Information:
Debian Release: 3.1
  APT prefers testing
  APT policy: (500, 'testing')
Architecture: i386 (i686)
Kernel: Linux 2.6.8-skua
Locale: LANG=C, LC_CTYPE=de_DE (charmap=ISO-8859-1)

Versions of packages libgimp-perl depends on:
ii  gimp2.2.4-2  The GNU Image Manipulation Program
ii  libatk1.0-0 1.8.0-4  The ATK accessibility toolkit
ii  libc6   2.3.2.ds1-20 GNU C Library: Shared libraries an
ii  libgimp2.0  2.2.4-2  Libraries necessary to run the GIM
ii  libglib2.0-02.6.3-1  The GLib library of C routines
ii  libgtk2-perl1:1.080-1Perl interface to the 2.x series o
ii  libgtk2.0-0 2.6.2-3  The GTK+ graphical user interface 
ii  libpango1.0-0   1.8.1-1  Layout and rendering of internatio
ii  pdl 1:2.4.2-2perl data language: Perl extension
ii  perl5.8.4-8  Larry Wall's Practical Extraction 
ii  perl-base [perlapi-5.8.4]   5.8.4-8  The Pathologically Eclectic Rubbis

-- no debconf information
diff -urw orig/glowing_steel ./glowing_steel
--- orig/glowing_steel  2005-03-16 21:04:16.0 +0100
+++ ./glowing_steel 2005-04-15 20:43:59.460979818 +0200
@@ -196,7 +196,7 @@
 
   gimp_brightness_contrast($templ, 50, 0);
   plug_in_noisify($image, $templ, 0, 0.3, 0.3, 0.3, 0);
-  plug_in_mblur($image, $templ, 0, $length, $angle);
+  plug_in_mblur($image, $templ, 0, $length, $angle, 0.0, 0.0);
 
   # Now put it into the target layer
   gimp_selection_load($target_select);
diff -urw orig/scratches ./scratches
--- orig/scratches  2005-03-16 21:04:17.0 +0100
+++ ./scratches 2005-04-15 20:44:03.903346091 +0200
@@ -19,7 +19,7 @@
 $layer-add_layer(-1);
 $layer-fill (WHITE_FILL);
 $layer-noisify (0, 1, 1, 1, 0);
-$layer-mblur (0, $length, $angle);
+$layer-mblur (0, $length, $angle, 0.0, 0.0);
 $layer-levels (HISTOGRAM_VALUE, 120, 255, 0.3, 0, 255);
 
 $layer;
diff -urw orig/windify ./windify
--- orig/windify2005-03-16 21:04:18.0 +0100
+++ ./windify   2005-04-15 20:44:08.283721208 +0200
@@ -31,7 +31,7 @@
 $density/255,
 $density/255,1);
 
-   plug_in_mblur($out,$windlayercopy,0,15,$angle);
+   plug_in_mblur($out,$windlayercopy,0,15,$angle, 0.0, 0.0);
gimp_layer_set_mode($windlayercopy, 10); # Lighten Only
gimp_image_merge_visible_layers($out,0);