resize changes the size of the data for the inode with id 'inodeID' from 'from' to 'to'. This may grow or shrink.
(e sqlExecutor, inodeID, from, to uint64)
| 349 | // resize changes the size of the data for the inode with id 'inodeID' |
| 350 | // from 'from' to 'to'. This may grow or shrink. |
| 351 | func resizeBlocks(e sqlExecutor, inodeID, from, to uint64) error { |
| 352 | if to < from { |
| 353 | return shrink(e, inodeID, from, to) |
| 354 | } else if to > from { |
| 355 | return grow(e, inodeID, from, to) |
| 356 | } |
| 357 | return nil |
| 358 | } |