[PATCH V2] xfs_io: add mremap command

Eric Sandeen sandeen at sandeen.net
Fri Sep 12 11:22:17 CDT 2014


On 9/10/14 10:29 PM, Eric Sandeen wrote:
> This adds a simple mremap command to xfs_io.
>
> It does not take a start address; it uses the existing
> start address, so the sized passed will be the new total
> size of the mapping.
>
> Signed-off-by: Eric Sandeen <sandeen at redhat.com>
> ---


> +int
> +mremap_f(
> +    int        argc,
> +    char        **argv)
> +{
> +    ssize_t        new_length;
> +    void        *new_addr;
> +    int        flags = 0;
> +    int        c;
> +    size_t        blocksize, sectsize;
> +

Crap, and I just realized my mailer has started swapping tabs for spaces; my last several patches are probably corrupted this way.  Grumble.

-Eric



More information about the xfs mailing list