Ask Your Question

Is it possible to enable xattr on tmpfs

asked 2014-05-05 05:26:09 -0500

Frederick Roth gravatar image

I want to enable xattr on tmpfs as I run unit-tests on my machine which require xattr to run correctly.

Is this possible?

How can I achieve it?

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

answered 2014-05-06 06:52:55 -0500

joshuar gravatar image

According to the mount(8) manpage, it doesn't look like tmpfs supports extended attributes. However, you might be able to emulate what you need using the context and related mount options, see the explanation of this option in the manpage (under FILESYSTEM INDEPENDENT MOUNT OPTIONS).

edit flag offensive delete link more


Thanks! The context mount option does not work for me as I want to set and read xattr at runtime on different files. But now I am quite sure that I have to run the tests against another folder...

Frederick Roth gravatar imageFrederick Roth ( 2014-05-06 07:39:31 -0500 )edit

Question Tools


Asked: 2014-05-05 05:26:09 -0500

Seen: 1,152 times

Last updated: May 06 '14