Zygo / bees

Best-Effort Extent-Same, a btrfs dedupe agent
GNU General Public License v3.0
625 stars 56 forks source link

Mount prevent second run #267

Open Ratio2 opened 10 months ago

Ratio2 commented 10 months ago

1.Run "sudo /usr/local/sbin/beesd UUID"

  1. Close it with SIGINT(ctrl+c)/SIGTERM
  2. Run "sudo /usr/local/sbin/beesd UUID"

mount: /run/bees/mnt/UUID: /dev/... already mounted on /.

But if we use "sudo systemctl stop bees@UUID" then mount automatically closed and no problem occurred.

Very strange. I not found special handling in source code. Systemd behavior?

lilydjwg commented 9 months ago

Systemd behavior?

Yes. The systemd service uses a private mount which gets cleaned up after service is stopped. When you manually run beesd, you'll need to unmount that mountpoint yourself (that's why I don't do that).