-
Notifications
You must be signed in to change notification settings - Fork 76
Resolved some dmesg errors (#104) #208
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
Changes from 9 commits
f47658d
bdc354c
4fe9f09
ecd9644
a170564
163c04e
9d864ff
830df48
bf9bef4
5fe0c19
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
|
@@ -159,7 +159,18 @@ make_overlay() { | |||||||||||
| sandbox_dir="$1" | ||||||||||||
| lowerdirs="$2" | ||||||||||||
| overlay_mountpoint="$3" | ||||||||||||
| mount -t overlay overlay -o userxattr -o "lowerdir=$lowerdirs,upperdir=$sandbox_dir/upperdir/$overlay_mountpoint,workdir=$sandbox_dir/workdir/$overlay_mountpoint" "$sandbox_dir/temproot/$overlay_mountpoint" | ||||||||||||
| mount -t overlay overlay -o userxattr -o "lowerdir=$lowerdirs,upperdir=$sandbox_dir/upperdir/$overlay_mountpoint,workdir=$sandbox_dir/workdir/$overlay_mountpoint,index=off" "$sandbox_dir/temproot/$overlay_mountpoint" | ||||||||||||
| } | ||||||||||||
|
|
||||||||||||
| check_fstype() { | ||||||||||||
| mountpoint="$1" | ||||||||||||
| fstype=$(stat -f -c %T "$mountpoint") | ||||||||||||
|
|
||||||||||||
| if [[ "$fstype" = "msdos" || "$fstype" = "exfat" || "$fstype" = "hfs" || "$fstype" = "hfs+" ]]; then | ||||||||||||
|
||||||||||||
| if [[ "$fstype" = "msdos" || "$fstype" = "exfat" || "$fstype" = "hfs" || "$fstype" = "hfs+" ]]; then | |
| case "$fstype" in | |
| (msdos|exfat|hfs|hfs+) returrn 1;; | |
| (*) return 0;; | |
| esac |
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.
Is this an exhaustive list? Can we not do it for ext3/4?
Outdated
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.
| if check_fstype "$pure_mountpoint"; then | |
| if ! mountable_without_mergerfs "$pure_mountpoint" | |
| then | |
| needs_mergerfs=1 | |
| fi |
And then... we ought to break out early. If any mount requires a mergerfs, we should give up early and just use mergerfs. Right?
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.