Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 10 Mar 2009 23:16:09 +0300
From:      Anonymous <swell.k@gmail.com>
To:        Paul Wootton <paul@fletchermoorland.co.uk>
Cc:        freebsd-current@freebsd.org, Pegasus Mc Cleaft <ken@mthelicon.com>
Subject:   Re: bsdtar lockup on Current-03/10/2009
Message-ID:  <86sklldth2.fsf@gmail.com>
References:  <200903100104.53847.ken__6247.10998167775$1236647281$gmane$org@mthelicon.com> <86mybuasss.fsf@gmail.com> <200903101238.20974.paul@fletchermoorland.co.uk>

next in thread | previous in thread | raw e-mail | index | archive | help
--=-=-=

Paul Wootton <paul@fletchermoorland.co.uk> writes:

> Im also using ZFS and have the same problems as Peg when trying to create a
> tar file.
> This is using Current as of last yesterday (09-mar-09).

I'm not sure but in my case ktrace shows extattr_list_link() before the lockup.
So, for a workaround I disabled extattr support in libarchive. Can you verify that
this helps you, too?


--=-=-=
Content-Type: text/x-diff
Content-Disposition: inline; filename=libarchive.diff
Content-Description: disable extattr support

Index: lib/libarchive/config_freebsd.h
===================================================================
--- lib/libarchive/config_freebsd.h	(revision 189643)
+++ lib/libarchive/config_freebsd.h	(working copy)
@@ -34,12 +34,7 @@
 #define	HAVE_ACL_SET_FD_NP 1
 #define	HAVE_ACL_SET_FILE 1
 #define	HAVE_ACL_USER 1
-#define	HAVE_EXTATTR_GET_FILE 1
-#define	HAVE_EXTATTR_LIST_FILE 1
-#define	HAVE_EXTATTR_SET_FD 1
-#define	HAVE_EXTATTR_SET_FILE 1
 #define	HAVE_SYS_ACL_H 1
-#define	HAVE_SYS_EXTATTR_H 1
 #endif
 
 #define	HAVE_BZLIB_H 1

--=-=-=


>
> Out of interest, I tried the following which seemed to work though
>
> demophon# mdconfig -a -t malloc -s 100M -u 0
> demophon# newfs /dev/md0
> /dev/md0: 100.0MB (204800 sectors) block size 16384, fragment size 2048
>         using 4 cylinder groups of 25.02MB, 1601 blks, 3264 inodes.
> super-block backups (for fsck -b #) at:
>  160, 51392, 102624, 153856
> demophon# mount /dev/md0 /mnt
> demophon# dd if=/dev/random of=/mnt/rand
>
> /mnt: write failed, filesystem is full
> dd: /mnt/rand: No space left on device
> 197601+0 records in
> 197600+0 records out
> 101171200 bytes transferred in 2.240331 secs (45159043 bytes/sec)
> demophon# tar -cvf /dev/null /mnt/rand
> tar: Removing leading '/' from member names
> a mnt/rand
> demophon#

You could skip mdconfig/newfs thing with tmpfs(5).

>
> Dont know if that helps at all...
>
> Paul

--=-=-=--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?86sklldth2.fsf>