From: bugme-daemon@bugzilla.kernel.org
To: linux-ext4@vger.kernel.org
Subject: [Bug 12793] New: ext4 gives wrong errno with too long extended attribute values
Date: Sun, 1 Mar 2009 04:40:58 -0800 (PST) [thread overview]
Message-ID: <bug-12793-13602@http.bugzilla.kernel.org/> (raw)
http://bugzilla.kernel.org/show_bug.cgi?id=12793
Summary: ext4 gives wrong errno with too long extended attribute
values
Product: File System
Version: 2.5
KernelVersion: 2.6.29-rc6
Platform: All
OS/Version: Linux
Tree: Mainline
Status: NEW
Severity: normal
Priority: P1
Component: ext4
AssignedTo: fs_ext4@kernel-bugs.osdl.org
ReportedBy: betelgeuse@gentoo.org
Latest working kernel version: haven't seen it working
Earliest failing kernel version: 2.6.28-gentoo-r1 had the same issue
Distribution: Gentoo
Hardware Environment: SMP Sun Mar 1 14:15:44 EET 2009 i686 Intel(R) Core(TM)2
CPU 6600 @ 2.40GHz GenuineIntel GNU/Linux
Software Environment: Gentoo ~x86
Problem Description:
>From man attr_set:
attr_set will fail if one or more of the following are true:
[ENOATTR] The attribute name given is not associated with the
indicated filesystem object and the ATTR_REPLACE flag bit was set.
[E2BIG] The value of the given attribute is too large, it
exceeds the maximum allowable size of an attribute value.
This is what the test script gives for ext4:
3900
4000
4100
Traceback (most recent call last):
File "test_xattr.py", line 10, in <module>
xattr.set('/mnt/test/header.txt','user.test',s)
IOError: [Errno 28] No space left on device
This is what xfs gives:
65500
65600
Traceback (most recent call last):
File "test_xattr.py", line 10, in <module>
xattr.set('/mnt/test/header.txt','user.test',s)
IOError: [Errno 7] Argument list too long
>>> errno.errorcode[7]
'E2BIG'
>>> errno.errorcode[28]
'ENOSPC'
Steps to reproduce:
betelgeuse@pena ~/python $ cat test_xattr.py
import xattr
hundred = ''
for i in range(100):
hundred+='a'
s=hundred
while True:
print len(s)
xattr.set('/mnt/test/header.txt','user.test',s)
s+=hundred
--
Configure bugmail: http://bugzilla.kernel.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
next reply other threads:[~2009-03-01 12:41 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-03-01 12:40 bugme-daemon [this message]
2009-08-07 15:02 ` [Bug 12793] ext4 gives wrong errno with too long extended attribute values bugzilla-daemon
2009-08-11 2:58 ` bugzilla-daemon
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=bug-12793-13602@http.bugzilla.kernel.org/ \
--to=bugme-daemon@bugzilla.kernel.org \
--cc=linux-ext4@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).