You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
preferredToolHint=fmt.Sprintf("run 'debugfs -w %s' to browse host files", devicePath)
24
+
}
25
+
case"xfs":
26
+
ifhasTool("xfs_db") {
27
+
preferredToolHint=fmt.Sprintf("use 'xfs_db -x -c \"inode 128\" -c \"ls\" %s' to inspect the host filesystem", devicePath)
28
+
}
29
+
}
30
+
31
+
ifpreferredToolHint!="" {
32
+
ifhasTool("mount") {
33
+
returnfmt.Sprintf("now, %s. If that tool is inconvenient, try '%s'.", preferredToolHint, mountHint)
34
+
}
35
+
returnfmt.Sprintf("now, %s.", preferredToolHint)
36
+
}
37
+
38
+
ifhasTool("mount") {
39
+
iffsType!="" {
40
+
returnfmt.Sprintf("now, host filesystem type is %q. Try '%s' to inspect it.", fsType, mountHint)
41
+
}
42
+
returnfmt.Sprintf("now, try '%s' to inspect the host filesystem.", mountHint)
43
+
}
44
+
45
+
iffsType!="" {
46
+
returnfmt.Sprintf("host filesystem type is %q. A block device was created at %s; inspect it with tooling available in the container.", fsType, devicePath)
47
+
}
48
+
returnfmt.Sprintf("a block device was created at %s; inspect it with tooling available in the container.", devicePath)
0 commit comments