Skip to content

Commit

Permalink
clearer condition
Browse files Browse the repository at this point in the history
  • Loading branch information
jsuchome committed Sep 13, 2013
1 parent da9b312 commit 480e4bc
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions src/include/samba-server/dialogs.rb
Original file line number Diff line number Diff line change
Expand Up @@ -100,12 +100,14 @@ def subvolume?(path)
return false unless path
stat = SCR.Read(path(".target.stat"), path)

return true if
# 1. is btrfs subvolume
stat["inode"] == 256 &&
# 1. is btrfs subvolume
if stat["inode"] == 256 &&
# 2. has snapper config
SCR.Execute(path(".target.bash"), "grep 'SUBVOLUME=\"#{path}\"' /etc/snapper/configs/*")
false
return true
else
return false
end
end


Expand Down

0 comments on commit 480e4bc

Please sign in to comment.