Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
No ext4 xattr in .config kernel 3.11.*
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
siknasa9
n00b
n00b


Joined: 09 Dec 2011
Posts: 38

PostPosted: Sun Sep 29, 2013 2:33 am    Post subject: No ext4 xattr in .config kernel 3.11.* Reply with quote

I didn't really notice this until recently, but I don't have the option to enable extended attributes in ext4 on all 3.11 kernels (they're all I have left since last cleaning). Am I missing something?
_________________
Autobots... roll out!!
Back to top
View user's profile Send private message
Hu
Watchman
Watchman


Joined: 06 Mar 2007
Posts: 8592

PostPosted: Sun Sep 29, 2013 4:21 am    Post subject: Reply with quote

CONFIG_EXT4_FS_XATTR is now always enabled as of 3.7. See commit 939da1084458246d2e29dd921c2012c177000e96.
Back to top
View user's profile Send private message
siknasa9
n00b
n00b


Joined: 09 Dec 2011
Posts: 38

PostPosted: Mon Sep 30, 2013 5:15 am    Post subject: Reply with quote

Hu wrote:
CONFIG_EXT4_FS_XATTR is now always enabled as of 3.7. See commit 939da1084458246d2e29dd921c2012c177000e96.


Then why does
Code:
xattr_test=$(mktemp); setfattr -n 'user.testAttr' -v 'attribute value' $xattr_test &> /dev/null; getfattr $xattr_test 2>&1 | grep -q user.testAttr && echo 'It works!' || echo 'No workie!'; rm $xattr_test
produce "No Workie!!"?

I do have user_xattr on both ext4 partitions in fstab...
_________________
Autobots... roll out!!
Back to top
View user's profile Send private message
Hu
Watchman
Watchman


Joined: 06 Mar 2007
Posts: 8592

PostPosted: Tue Oct 01, 2013 1:33 am    Post subject: Reply with quote

What is the output of stat -f $TMPDIR?
Back to top
View user's profile Send private message
siknasa9
n00b
n00b


Joined: 09 Dec 2011
Posts: 38

PostPosted: Tue Oct 01, 2013 6:51 pm    Post subject: Reply with quote

Hu wrote:
What is the output of stat -f $TMPDIR?


stat -f $TMPDIR
Code:
  File: "/tmp"
    ID: 0        Namelen: 255     Type: tmpfs
Block size: 4096       Fundamental block size: 4096
Blocks: Total: 229033     Free: 228596     Available: 228596
Inodes: Total: 229033     Free: 228997

_________________
Autobots... roll out!!
Back to top
View user's profile Send private message
Hu
Watchman
Watchman


Joined: 06 Mar 2007
Posts: 8592

PostPosted: Tue Oct 01, 2013 9:03 pm    Post subject: Reply with quote

If you want to see whether ext4 xattr support is working, why are you editing the attributes on a file on a tmpfs?
Back to top
View user's profile Send private message
siknasa9
n00b
n00b


Joined: 09 Dec 2011
Posts: 38

PostPosted: Tue Oct 01, 2013 9:57 pm    Post subject: Reply with quote

Hu wrote:
If you want to see whether ext4 xattr support is working, why are you editing the attributes on a file on a tmpfs?


Not sure. Got this from https://wiki.gentoo.org/wiki/Netflix‎... Though, I'm pretty sure xattr_test=$(mktemp) just writes output to /tmp/tempfile as opposed to testing /tmp. The directory I'm in when executing the script is $HOME which is ext4.
_________________
Autobots... roll out!!
Back to top
View user's profile Send private message
Hu
Watchman
Watchman


Joined: 06 Mar 2007
Posts: 8592

PostPosted: Tue Oct 01, 2013 10:48 pm    Post subject: Reply with quote

What output would that be? You never write any output to the temporary file it creates. Nothing in the test considers the current working directory at all, so the value of $HOME or the filesystem backing it are irrelevant here. You are testing for working xattr support in $TMPDIR. If you want this to work, you must enable TMPFS_XATTR in Kconfig.
Back to top
View user's profile Send private message
tnt
Veteran
Veteran


Joined: 27 Feb 2004
Posts: 1126

PostPosted: Sat Nov 16, 2013 1:37 am    Post subject: Reply with quote

does that also mean that xattr are enabled per default on all ext4 mounts using recent kernels?
_________________
gentoo user
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum