github.com/u-root/u-root@v7.0.1-0.20200915234505-ad7babab0a8e+incompatible/pkg/cpio/sysinfo_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 cpio
     6  
     7  import "os"
     8  
     9  func sysInfo(n string, fi os.FileInfo) Info {
    10  	return Info{
    11  		Mode:     uint64(fi.Mode()),
    12  		UID:      0,
    13  		MTime:    uint64(fi.ModTime().Second()),
    14  		FileSize: uint64(fi.Size()),
    15  		Name:     n,
    16  	}
    17  }