Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Generic basic btrfs support plus proposed fix for issue#533 (udevadm settle) #538

Merged
merged 2 commits into from Jan 25, 2015
Merged

Conversation

jsmeix
Copy link
Member

@jsmeix jsmeix commented Jan 23, 2015

See #497
and #533

(which calls "udevadm settle").
Have my_udevsettle before and after each parted and partprobe call
which result duplicated consecutive my_udevsettle calls in
diskrestore.sh but it is fail-safe this way and two consecutive
"udevadm settle" do not cause any harm and at least the second
one returns immediately.
Do not specify a non-default timeout for "udevadm settle" because
the default timeout (120 seconds according to my udevadm man page)
is certainly "the right thing" from the udev authors who know
much better than I what the most reasonable default is.
If "udevadm settle" fails, the whole diskrestore.sh fails because
it has "set -e" which is correct because "rear recover" must
not blindly proceed in case of errors.
see #497
and https://bugzilla.opensuse.org/show_bug.cgi?id=908854
Currently it works btrfs filesystem by btrfs filesystem.
Therefore it probably fails if there are
"weaved btrfs subvolume mounts" which means
- a subvolume sv1 on a btrfs on /dev/sdXn
  is mounted at a mountpoint directory
  that belongs to a btrfs on /dev/sdYm
and
- a subvolume sv2 on a btrfs on /dev/sdYm
  is mounted at a mountpoint directory
  that belongs to a btrfs on /dev/sdXn
in particular when the mountpoint directories are no plain directories
but also subvolumes sv3 and sv4 on any of the btrfs filesystems.
@gdha gdha added the enhancement Adaptions and new features label Jan 25, 2015
@gdha gdha added this to the Rear v1.17 milestone Jan 25, 2015
@gdha gdha self-assigned this Jan 25, 2015
@gdha
Copy link
Member

gdha commented Jan 25, 2015

@jsmeix ok I'll accept the pull request, but we better double test everything once more.
@tbsky Your request is not yet part of this pull request

gdha added a commit that referenced this pull request Jan 25, 2015
Generic basic btrfs support plus proposed fix for issue#533 (udevadm settle)
@gdha gdha merged commit 99fbbd4 into rear:master Jan 25, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Adaptions and new features
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants