Exemplo n.º 1
0
func makeSpecialInode(fullPathname string, inode *filesystem.SpecialInode) {
	if err := inode.Write(fullPathname); err != nil {
		logger.Println(err)
	} else {
		logger.Printf("Made special inode: %s\n", fullPathname)
	}
}
Exemplo n.º 2
0
func makeSpecialInode(fullPathname string, inode *filesystem.SpecialInode,
	logger *log.Logger) error {
	if err := inode.Write(fullPathname); err != nil {
		logger.Println(err)
		return err
	}
	logger.Printf("Made special inode: %s\n", fullPathname)
	return nil
}