code.flowtr.dev/mirrors/u-root@v1.0.0/cmds/cp/cp_plan9.go (about) 1 // Copyright 2013-2017 the u-root Authors. All rights reserved 2 // Use of this source code is governed by a BSD-style 3 // license that can be found in the LICENSE file. 4 5 package main 6 7 func sameFile(sys1, sys2 interface{}) bool { 8 a := sys1.(*dir) 9 b := sys2.(*dir) 10 return a.Qid.Path == b.Qid.Path && a.Type == b.Type && a.Dev == b.Dev 11 }