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