(v []uint64)
| 145 | } |
| 146 | |
| 147 | func parseV3Stats(v []uint64) (V3Stats, error) { |
| 148 | values := int(v[0]) |
| 149 | if len(v[1:]) != values || values < 22 { |
| 150 | return V3Stats{}, fmt.Errorf("invalid V3Stats line %v", v) |
| 151 | } |
| 152 | |
| 153 | return V3Stats{ |
| 154 | Null: v[1], |
| 155 | GetAttr: v[2], |
| 156 | SetAttr: v[3], |
| 157 | Lookup: v[4], |
| 158 | Access: v[5], |
| 159 | ReadLink: v[6], |
| 160 | Read: v[7], |
| 161 | Write: v[8], |
| 162 | Create: v[9], |
| 163 | MkDir: v[10], |
| 164 | SymLink: v[11], |
| 165 | MkNod: v[12], |
| 166 | Remove: v[13], |
| 167 | RmDir: v[14], |
| 168 | Rename: v[15], |
| 169 | Link: v[16], |
| 170 | ReadDir: v[17], |
| 171 | ReadDirPlus: v[18], |
| 172 | FsStat: v[19], |
| 173 | FsInfo: v[20], |
| 174 | PathConf: v[21], |
| 175 | Commit: v[22], |
| 176 | }, nil |
| 177 | } |
| 178 | |
| 179 | func parseClientV4Stats(v []uint64) (ClientV4Stats, error) { |
| 180 | values := int(v[0]) |
no outgoing calls
no test coverage detected
searching dependent graphs…