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
Take AUTOEXCLUDE_PATH into account in layout doc #3124
Conversation
After moving one mount under
I have not tried to mount it under |
@@ -131,6 +131,17 @@ multipath disks. Typically, they are part of the SAN disaster recovery | |||
strategy. However, there can be cases where you want to recover them. The | |||
information is retained in +disklayout.conf+. | |||
|
|||
Some filesystems are excluded from the layout file by default if they | |||
are mounted under a certain path. This behavior is controlled by the |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I am not a native English speaker
but I am wondering
if "mounted under a certain path"
or "mounted below a certain path"
is correct English and what makes it more clear
that AUTOEXCLUDE_PATH+=( /mymountpoint )
does not exclude what is mounted diectly at /mymountpoint
but what is mounted at a directory below /mymountpoint ?
Perhaps "mounted underneath a certain path"
could make that obvious?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What about "if their mountpoints are located under certain directories" ? This should make clear that the mountpoints are different entities than the "certain directories".
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Regardless of the particular English wording
the explicit description
Note that if one of the paths is itself a mountpoint,
the filesystem is not excluded. So, if /media is a
mounted filesystem, it will not be excluded, but
if we mount the /dev/mapper/backup-backup filesystem
on /media/backup, it will get excluded, as the mountpoint
is under /media.
makes it very clear for everybody how it behaves.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@jsmeix I have changed the text according to my suggestion above, and I plan to merge the PR soon today.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@pcahyna
thank you for updating and improving our documentation!
Since PR rear#2261, /media is included in the default AUTOEXCLUDE_PATH. This means that a filesystem mounted on a directory like /media/backup will not be included in the layout. This makes the example invalid, as it describes how a filesystem mounted under /media/backup will be included in the layout and what manual steps are needed to exclude it. To preserve the validity of the example, change all paths in the example from /media/backup to /backup. Take this opportunity to also describe the AUTOEXCLUDE_PATH variable among other autoexclusions.
29aa872
to
a87563e
Compare
Relax-and-Recover (ReaR) Pull Request Template
Please fill in the following items before submitting a new pull request:
Pull Request Details:
Type: Bug Fix
Impact: Low
Reference to related issue (URL):
Triggred by PR Enhanced AUTOEXCLUDE_PATH /media /run /mnt and /tmp #2261. Found while working on Improve docs for manual excludes #2997.
How was this pull request tested?
Observe that everything related to the storage created above is commented out in disklayout.conf:
Since PR #2261, /media is included in the default AUTOEXCLUDE_PATH. This means that a filesystem mounted on a directory like /media/backup will not be included in the layout. This makes the example invalid, as it describes how a filesystem mounted under /media/backup will be included in the layout and what manual steps are needed to exclude it.
To preserve the validity of the example, change all paths in the example from /media/backup to /backup.
Take this opportunity to also describe the AUTOEXCLUDE_PATH variable among other autoexclusions.