Bogusly keeps complaining about [user_xattr,acl] [SOLVED]

Post here if you found a bug or something really not expected in the program
Post Reply
whatever
Posts: 1
Joined: Fri Mar 21, 2014 7:29 pm

Bogusly keeps complaining about [user_xattr,acl] [SOLVED]

Post by whatever » Fri Mar 21, 2014 7:35 pm

fsarchiver is not working the way the error output or this Attributes page says it will. It continues to output the following error message after remounting the partition with the specified options:

Code: Select all

oper_save.c#975,filesystem_mount_partition(): partition [/dev/sda1] has to be mounted with options [user_xattr,acl] in order to preserve all its attributes. you can use mount with option remount to do that.
This is with Ubuntu 13.10 booted from a USB flash drive, fsarchiver 0.6.17 installed via apt-get from the universe repository, where /dev/sda1 is an ext4 partition.

Where does fsarchiver read the status of the [user_xattr,acl] options from? This post seems to be saying that fsarchiver gets that data from /proc/self/mountinfo.

Is this problem related to what's mentioned here: ext4: Documenatation: remove acl and user_xattr mount options and http://unix.stackexchange.com/a/79994 ?

Here is data excerpted from relevant command output / files:

Code: Select all

$ mount -l

/dev/sda1 on /mnt/whatever type ext4 (ro,user_xattr,acl) [Label]

Code: Select all

$ cat /proc/self/mountinfo

37 23 8:1 / /mnt/whatever ro,relatime - ext4 /dev/sda1 ro,data=ordered

Code: Select all

$ fsarchiver savefs /whatever.fsa /dev/sda1

oper_save.c#975,filesystem_mount_partition(): partition [/dev/sda1] has to be mounted with options [user_xattr,acl] in order to preserve all its attributes. you can use mount with option remount to do that.
oper_save.c#982,filesystem_mount_partition(): fsarchiver cannot continue, you can use option '-a' to ignore the mount options (xattr or acl may not be preserved)
I couldn't perform the savefs operation without using the `-a` option even though I remounted the partition with the [user_xattr,acl] options as shown in the `mount -l` output.

admin
Site Admin
Posts: 550
Joined: Sat Feb 21, 2004 12:12 pm

Re: Bogusly keeps complaining about [user_xattr,acl] options

Post by admin » Sat Jan 09, 2016 8:54 pm

fsarchiver will show this error message if the mount options cannot be found in /proc/self/mountinfo (this is verified by generic_get_mntinfo in the code) and if these mount options are not set in the default mount options in the filesystem attributes.

The simplest solution to your problem is to change the default mount options and to remount the partition:

Code: Select all

# dumpe2fs -h /dev/sda1 | grep ^Default
dumpe2fs 1.42.13 (17-May-2015)
Default mount options:    (none)
# tune2fs -o user_xattr,acl /dev/sda1
tune2fs 1.42.13 (17-May-2015)
# dumpe2fs -h /dev/sda1 | grep ^Default
dumpe2fs 1.42.13 (17-May-2015)
Default mount options:    user_xattr acl
# umount /dev/sda1
# mount /dev/sda1 /boot

admin
Site Admin
Posts: 550
Joined: Sat Feb 21, 2004 12:12 pm

Re: Bogusly keeps complaining about [user_xattr,acl] options

Post by admin » Sun Jan 10, 2016 10:28 am

The code has been changed to attempt to read xattr and ACLs instead of expecting mount options to be present. This should be more reliable to find whether or not these attributes are supported.

The fix has been added to the latest git version and it will be in fsarchiver-0.6.22

Post Reply