Add autotools support for BtrFS option

Feature is enabled by default, if headers are available. It can be
turned off explictly.
This commit is contained in:
Adam Majer
2019-01-23 16:17:05 +01:00
committed by Serge Hallyn
parent c1d36a8acb
commit 50b23584d7
6 changed files with 39 additions and 3 deletions

View File

@ -1819,12 +1819,14 @@ static void move_home (void)
return;
} else {
if (EXDEV == errno) {
#ifdef WITH_BTRFS
if (btrfs_is_subvolume (prefix_user_home) > 0) {
fprintf (stderr,
_("%s: error: cannot move subvolume from %s to %s - different device\n"),
Prog, prefix_user_home, prefix_user_newhome);
fail_exit (E_HOMEDIR);
}
#endif
if (copy_tree (prefix_user_home, prefix_user_newhome, true,
true,