linux-btrfs.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* BTRFS extended attributes mounted on a non-extended-attributes compiled kernel
@ 2013-12-11 17:51 Martin
  2013-12-11 19:01 ` Hugo Mills
  0 siblings, 1 reply; 3+ messages in thread
From: Martin @ 2013-12-11 17:51 UTC (permalink / raw)
  To: linux-btrfs

What happens if...

I have a btrfs that has utilised posix ACLs / extended attributes and I
then subsequently mount that onto a system that does not have the kernel
modules compiled for those features?


Crash and burn?

Or are the extra filesystem features benignly ignored until remounted on
the original system with all the kernel modules?


Thanks,
Martin


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: BTRFS extended attributes mounted on a non-extended-attributes compiled kernel
  2013-12-11 17:51 BTRFS extended attributes mounted on a non-extended-attributes compiled kernel Martin
@ 2013-12-11 19:01 ` Hugo Mills
  2013-12-11 19:43   ` Chris Mason
  0 siblings, 1 reply; 3+ messages in thread
From: Hugo Mills @ 2013-12-11 19:01 UTC (permalink / raw)
  To: Martin; +Cc: linux-btrfs

[-- Attachment #1: Type: text/plain, Size: 1361 bytes --]

On Wed, Dec 11, 2013 at 05:51:06PM +0000, Martin wrote:
> What happens if...
> 
> I have a btrfs that has utilised posix ACLs / extended attributes and I
> then subsequently mount that onto a system that does not have the kernel
> modules compiled for those features?
> 
> 
> Crash and burn?
> 
> Or are the extra filesystem features benignly ignored until remounted on
> the original system with all the kernel modules?

   Thinking about it, it's probably going to be OK. btrfs itself
doesn't have any way of turning off EA support, so you'll always have
the EAs managed correctly. The ACL support (which is implemented
through EAs, if I remember correctly) can be turned off, so the
meaning of the ACL EAs will be ignored, but the EA content should
still be there for when you move to an ACL-enabled system again. Note
that this gives you a "convenient" way of bypassing POSIX ACLs, by
switching to a kernel that doesn't enforce them.

   I've not actually tried this, so I'm willing to be proved wrong,
but I'll be surprised if that's the case. :)

   Hugo.

-- 
=== Hugo Mills: hugo@... carfax.org.uk | darksatanic.net | lug.org.uk ===
  PGP key: 65E74AC0 from wwwkeys.eu.pgp.net or http://www.carfax.org.uk
    --- Jazz is the sort of music where no-one plays anything the ---    
                             same way once.                              

[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 828 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: BTRFS extended attributes mounted on a non-extended-attributes compiled kernel
  2013-12-11 19:01 ` Hugo Mills
@ 2013-12-11 19:43   ` Chris Mason
  0 siblings, 0 replies; 3+ messages in thread
From: Chris Mason @ 2013-12-11 19:43 UTC (permalink / raw)
  To: Hugo Mills, Martin; +Cc: linux-btrfs

Quoting Hugo Mills (2013-12-11 14:01:04)
> On Wed, Dec 11, 2013 at 05:51:06PM +0000, Martin wrote:
> > What happens if...
> > 
> > I have a btrfs that has utilised posix ACLs / extended attributes and I
> > then subsequently mount that onto a system that does not have the kernel
> > modules compiled for those features?
> > 
> > 
> > Crash and burn?
> > 
> > Or are the extra filesystem features benignly ignored until remounted on
> > the original system with all the kernel modules?
> 
>    Thinking about it, it's probably going to be OK. btrfs itself
> doesn't have any way of turning off EA support, so you'll always have
> the EAs managed correctly. The ACL support (which is implemented
> through EAs, if I remember correctly) can be turned off, so the
> meaning of the ACL EAs will be ignored, but the EA content should
> still be there for when you move to an ACL-enabled system again. Note
> that this gives you a "convenient" way of bypassing POSIX ACLs, by
> switching to a kernel that doesn't enforce them.
> 
>    I've not actually tried this, so I'm willing to be proved wrong,
> but I'll be surprised if that's the case. :)

I do expect it to silently work.  If you have directories that inherit
acls etc, you might not get fully consistent results if you try to
change anything on the non-xattr/acl kernel.

-chris


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2013-12-11 19:43 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-12-11 17:51 BTRFS extended attributes mounted on a non-extended-attributes compiled kernel Martin
2013-12-11 19:01 ` Hugo Mills
2013-12-11 19:43   ` Chris Mason

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).