int vtfilesetdirsize(VtFile *r, u32int ds) { uvlong size; int epb; assert(ISLOCKED(r)); epb = r->dsize/VtEntrySize; size = (uvlong)r->dsize*(ds/epb); size += VtEntrySize*(ds%epb); return vtfilesetsize(r, size); }
int vtfilesetdirsize(VtFile *r, uint32_t ds) { uint64_t size; int epb; assert(ISLOCKED(r)); epb = r->dsize/VtEntrySize; size = (uint64_t)r->dsize*(ds/epb); size += VtEntrySize*(ds%epb); return vtfilesetsize(r, size); }