---
name: "VOP_REALLOCBLKS"
section: "9"
platform: "freebsd"
package: "base"
version: "16.0-CURRENT-20261027-61c70dc16a79"
release: "FreeBSD 16.0-CURRENT (2026-10-27)"
platforms: ["linux", "freebsd"]
url: "https://new.carta.tech/VOP_REALLOCBLKS"
---

# VOP\_REALLOCBLKS(9)

rearrange blocks in a file to be contiguous

## NAME

**VOP\_REALLOCBLKS** – rearrange blocks in a file to be contiguous

## SYNOPSIS

**#include \<sys/param.h\>**

**#include \<sys/vnode.h\>**

*int*\

**VOP\_REALLOCBLKS**(*struct vnode \*vp*, *struct cluster\_save \*buflist*);

## DESCRIPTION

The arguments are:

- *vp*

  The file to manipulate.

- *buflist*

  A list of buffers to rearrange.

This seems to be part of a work in progress.

## RETURN VALUES

Zero is returned on success, otherwise an error is returned.

## SEE ALSO

[buf(9)](/buf/9.md), [vnode(9)](/vnode/9.md)

## AUTHORS

This manual page was written by Doug Rabson.
