#761501 partman-ext3: add acl mount options for ext4?

#761501#5
Date:
2014-09-14 11:19:22 UTC
From:
To:
Hi.  In bug report #638822 we discuss the wish to add user_attr and acl
as file system options in Debian Edu to make samba exporting work
better.  But this do not work with d-i, as the acl option is not listed
in the /lib/partman/mountoptions/ext4 file.  According to the mount
manual page, ext4 support the [no]acl option in a way that is backward
compatible with ext3 and ext2.

Would it be possible to add acl to the list of supported options in
ext4?

#761501#10
Date:
2014-09-14 13:30:03 UTC
From:
To:
Looking at /etc/mke2fs.conf, I see
[defaults]
       base_features =
sparse_super,filetype,resize_inode,dir_index,ext_attr
       default_mntopts = acl,user_xattr


And it looks like the ext4 fs created by d-i indeed has this default
mount options set (i.e. they don't need to be listed in fstab).


Is there something missing?

#761501#15
Date:
2014-09-14 13:36:46 UTC
From:
To:
[Michael Biebl]

Thank you.

I guess I miss a way to verify that the acl and user_xattr options are
enabled on a mounted file system.  If I knew how to do that, I would
not have asked for this change. :)

#761501#20
Date:
2014-09-14 14:34:26 UTC
From:
To:
Petter Reinholdtsen <pere@hungry.com> (2014-09-14):

tune2fs -l $foo, under "Default mount options"?

Mraw,
KiBi.

#761501#25
Date:
2014-09-14 14:42:22 UTC
From:
To:
[Cyril Brulebois]

Yeah, perhaps that is as close as I can get.  I really want to know
currently enabled options on a mounted file system, not what would be
enabled if a device is mounted without options, but that seem to be
hard to figure out.

#761501#30
Date:
2014-09-14 14:47:08 UTC
From:
To:
Unfortunately /proc/mounts only shows whether the default options have
been overwritten.  You would need to combine the options listed there
with the default options for the filesystem as shown by 'tune2fs -l'.

Ben.