512MB
| 79 | const defaultMaxFileSize = 512 << 20 // 512MB |
| 80 | |
| 81 | type storage struct { |
| 82 | root string |
| 83 | index sorted.KeyValue |
| 84 | maxFileSize int64 |
| 85 | |
| 86 | writeLock io.Closer // Provided by lock.Lock, and guards other processes from accessing the file open for writes. |
| 87 | |
| 88 | *local.Generationer |
| 89 | |
| 90 | mu sync.Mutex // Guards all I/O state. |
| 91 | closed bool |
| 92 | writer *os.File |
| 93 | fds []*os.File |
| 94 | size int64 |
| 95 | } |
| 96 | |
| 97 | func (s *storage) String() string { |
| 98 | return fmt.Sprintf("\"diskpacked\" blob packs at %s", s.root) |
nothing calls this directly
no outgoing calls
no test coverage detected