Getting back into it. Maybe.
This commit is contained in:
+8
-1
@@ -1,9 +1,16 @@
|
||||
package squashfs
|
||||
|
||||
import "io"
|
||||
|
||||
func (w *Writer) countInodes() (out uint32) {
|
||||
out++ //for the root directory
|
||||
for _, files := range w.structure {
|
||||
out++
|
||||
out += uint32(len(files))
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
func (w *Writer) writeInodeTable(wrt io.WriterAt, off int64) (newOff int64, err error) {
|
||||
newOff = off
|
||||
return
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user