[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Mtools] small feature -- specify offset with -i option
From: |
Alain Knaff |
Subject: |
Re: [Mtools] small feature -- specify offset with -i option |
Date: |
Sat, 29 Nov 2008 12:22:43 +0100 |
User-agent: |
Thunderbird 2.0.0.18 (X11/20081125) |
Luigi Rizzo wrote:
> Hi,
> attached is a patch to implement a small but i believe convenient
> feature to specify a file offset as an additional parameter to
> the -i flag which now can take the form
>
> filename@@offset
>
> and you can add a trailing s,k,m,g character (case insensitive)
> to specify the offset in sectors, kb, mb or gb.
> Clearly the separator @@ can be changed to something else if
> appropriate.
>
> It is convenient e.g. when you need to manipulate image files or flash
> keys where the FAT partition is not at the beginning.
> I think right now you can only specify the offset by
> creating an mtools.conf file, which is probably not so
> convenient and the reason why the -i flag was introduced.
>
> patch below -- it should be reasonably compatible with the new mtools 4.0.0,
>
> cheers
> luigi
Thanks, this is now in mtools-4.0.0
Regards,
Alain