Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 22 Jul 2009 12:47:51 +0300
From:      Artis Caune <artis.caune@gmail.com>
To:        Edward Tomasz Napierala <trasz@freebsd.org>
Cc:        svn-src-head@freebsd.org, svn-src-all@freebsd.org, src-committers@freebsd.org
Subject:   Re: svn commit: r195785 - head/sys/cddl/contrib/opensolaris/uts/common/fs/zfs
Message-ID:  <9e20d71e0907220247x3b8b75cdm59106eaadc1517fa@mail.gmail.com>
In-Reply-To: <200907201916.n6KJGhEl086253@svn.freebsd.org>
References:  <200907201916.n6KJGhEl086253@svn.freebsd.org>

next in thread | previous in thread | raw e-mail | index | archive | help
2009/7/20 Edward Tomasz Napierala <trasz@freebsd.org>:
> Author: trasz
> Date: Mon Jul 20 19:16:42 2009
> New Revision: 195785
> URL: http://svn.freebsd.org/changeset/base/195785
>
> Log:
> =C2=A0Fix permission handling for extended attributes in ZFS. =C2=A0Witho=
ut
> =C2=A0this change, ZFS uses SunOS Alternate Data Streams semantics - each
> =C2=A0EA has its own permissions, which are set at EA creation time
> =C2=A0and - unlike SunOS - invisible to the user and impossible to change=
.
> =C2=A0From the user point of view, it's just broken: sometimes access
> =C2=A0is granted when it shouldn't be, sometimes it's denied when
> =C2=A0it shouldn't be.
>
> =C2=A0This patch makes it behave just like UFS, i.e. depend on current
> =C2=A0file permissions. =C2=A0Also, it fixes returned error codes (ENOATT=
R
> =C2=A0instead of ENOENT) and makes listextattr(2) return 0 instead
> =C2=A0of EPERM where there is no EA directory (i.e. the file never had
> =C2=A0any EA).



I can not create archives from ZFS file system after this commit.

# tar -c -f /dev/null -C /tmp ./
tar: Out of memory: Cannot allocate memory


extattr_list_link(0x8010150a0,0x1,0x0,0x0,0x50f738,0x8e008) =3D
-1098808089680 (0xffffff0029ef23b0)
mmap(0x0,703594496,PROT_READ|PROT_WRITE,MAP_PRIVATE|MAP_ANON,-1,0x0)
ERR#12 'Cannot allocate memory'
tar: write(2,"tar: ",5)				 =3D 5 (0x5)
Out of memorywrite(2,"Out of memory",13)			 =3D 13 (0xd)




--=20
Artis Caune

    Everything should be made as simple as possible, but not simpler.



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