mirror of
https://github.com/netbirdio/gvisor.git
synced 2026-05-22 17:12:49 -07:00
Log the correct path in mount promise timeout panic message.
PiperOrigin-RevId: 629460961
This commit is contained in:
committed by
gVisor bot
parent
39730b714c
commit
0d71d29b6d
@@ -959,7 +959,10 @@ func (vfs *VirtualFilesystem) maybeBlockOnMountPromise(ctx context.Context, rp *
|
||||
mp.wq.EventRegister(&e)
|
||||
defer mp.wq.EventUnregister(&e)
|
||||
|
||||
var path string
|
||||
var (
|
||||
path string
|
||||
err error
|
||||
)
|
||||
// Unblock waiter entries that were created after this mount promise was
|
||||
// resolved by a racing thread.
|
||||
if mp.resolved.Load() {
|
||||
@@ -967,7 +970,7 @@ func (vfs *VirtualFilesystem) maybeBlockOnMountPromise(ctx context.Context, rp *
|
||||
} else {
|
||||
root := RootFromContext(ctx)
|
||||
defer root.DecRef(ctx)
|
||||
path, err := vfs.PathnameReachable(ctx, root, vd)
|
||||
path, err = vfs.PathnameReachable(ctx, root, vd)
|
||||
if err != nil {
|
||||
panic(fmt.Sprintf("could not reach %v from root", rp.Component()))
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user