Exemple #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)
	}
}
Exemple #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
}