View previous topic :: View next topic |
Author |
Message |
siknasa9 n00b
Joined: 09 Dec 2011 Posts: 62
|
Posted: Sun Sep 29, 2013 2:33 am Post subject: No ext4 xattr in .config kernel 3.11.* |
|
|
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 |
|
|
Hu Moderator
Joined: 06 Mar 2007 Posts: 21490
|
|
Back to top |
|
|
siknasa9 n00b
Joined: 09 Dec 2011 Posts: 62
|
Posted: Mon Sep 30, 2013 5:15 am Post subject: |
|
|
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 |
|
|
Hu Moderator
Joined: 06 Mar 2007 Posts: 21490
|
Posted: Tue Oct 01, 2013 1:33 am Post subject: |
|
|
What is the output of stat -f $TMPDIR? |
|
Back to top |
|
|
siknasa9 n00b
Joined: 09 Dec 2011 Posts: 62
|
Posted: Tue Oct 01, 2013 6:51 pm Post subject: |
|
|
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 |
|
|
Hu Moderator
Joined: 06 Mar 2007 Posts: 21490
|
Posted: Tue Oct 01, 2013 9:03 pm Post subject: |
|
|
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 |
|
|
siknasa9 n00b
Joined: 09 Dec 2011 Posts: 62
|
Posted: Tue Oct 01, 2013 9:57 pm Post subject: |
|
|
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 |
|
|
Hu Moderator
Joined: 06 Mar 2007 Posts: 21490
|
Posted: Tue Oct 01, 2013 10:48 pm Post subject: |
|
|
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 |
|
|
tnt Veteran
Joined: 27 Feb 2004 Posts: 1221
|
Posted: Sat Nov 16, 2013 1:37 am Post subject: |
|
|
does that also mean that xattr are enabled per default on all ext4 mounts using recent kernels? _________________ gentoo user |
|
Back to top |
|
|
|