Re: [PATCH] btrfs: fix endianness in super_copy

2018-02-23 Thread David Sterba
On Thu, Feb 22, 2018 at 09:58:42PM +0800, Anand Jain wrote: > Moving between opposite endianness will report bogus numbers in sysfs, > and mount may fail as the root will not be restored correctly. If the > filesystem is always used on a same endian host, this will not be a > problem. > Fix this

[PATCH] btrfs: fix endianness in super_copy

2018-02-22 Thread Anand Jain
Moving between opposite endianness will report bogus numbers in sysfs, and mount may fail as the root will not be restored correctly. If the filesystem is always used on a same endian host, this will not be a problem. Fix this by using the btrfs_set_super...() functions to set fs_info::super_copy