Skip to content

Commit

Permalink
added comments
Browse files Browse the repository at this point in the history
  • Loading branch information
schubi2 committed Mar 6, 2019
1 parent e666ead commit 6c5b4fc
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/modules/Users.pm
Expand Up @@ -4456,7 +4456,7 @@ sub Write {

my %user = %{$modified_users{$type}{$username}};
my $home = $user{"homeDirectory"} || "";
my $use_btrfs_subvolume = $user{"btrfs_subvolume"} || 0;
my $use_btrfs_subvolume = $user{"btrfs_subvolume"} || 0;
my $uid = $user{"uidNumber"} || 0;
my $command = "";
my $user_mod = $user{"modified"} || "no";
Expand Down Expand Up @@ -5821,6 +5821,9 @@ sub ImportUser {
$encrypted = YaST::YCP::Boolean (1);
}

# "home_btrfs_subvolume" it the tag in the AY configuration
# file and is more user friendly. Internally we are using
# "btrfs_subvolume".
my $btrfs_subvolume = $user->{"home_btrfs_subvolume"};

my $home = $self->GetDefaultHome($type).$username;
Expand Down Expand Up @@ -6459,6 +6462,9 @@ sub ExportUser {
}
my $btrfs_subvolume = bool ($exported_user{"btrfs_subvolume"});
if (defined $btrfs_subvolume) {
# "home_btrfs_subvolume" it the tag in the AY configuration
# file and is more user friendly. Internally we are using
# "btrfs_subvolume".
$ret{"home_btrfs_subvolume"} = YaST::YCP::Boolean ($btrfs_subvolume);
}
return \%ret;
Expand Down

0 comments on commit 6c5b4fc

Please sign in to comment.