UFS endian conversion

sson sson at FreeBSD.org
Fri Mar 20 16:34:51 UTC 2015


Julian Elischer-5 wrote
> On 3/20/15 10:39 AM, sson wrote:
>> Brooks Davis-2 wrote
>>> On Mon, Mar 09, 2015 at 02:11:02PM +0100, Wojciech Puchar wrote:
>>>> is it possible without backup/restore?
>>>>
>>>> any tool?
>>>>
>>>> or do i miss something in fsck_ffs manual?
>>> You would need to backup on the source endian and restore on the
>>> destination.  Stacey Son (cc'd) has some patches to allow access to UFS
>>> file systems of non-native endian that need someone to help polishing
>>> them up.
>>>
>>> -- Brooks
>>>
>>>
>>> attachment0 (188 bytes)
>>> <http://freebsd.1045724.n5.nabble.com/attachment/5995345/0/attachment0>
>> (Sorry, I have been on vacation and then started having  #mbp2011
>> <https://mbp2011.org>   issues with my laptop so I am just catching
>> up.)
>>
>> I just rebased my patches to something a little closer to -current.  You
>> can
>> find my preliminary changes here:
>>
>> https://github.com/staceyson/freebsd/commit/642ad5aec8e9d130cdd347699da9718b23ff749a
>>
>> This provides enough support for the somewhat trivial case (e.g. ro, no
>> soft
>> updates, etc.).  This, indeed, needs more polishing.
>>
>> -stacey.
>> \
> 
> rather cool.
> does it all compile away to naught if not wanted?

Yes.  "option UFS_EI"  (Endian Independent) in the kernel conf adds the byte
swapping code.  Without that option none of the byte swapping code is added. 
It is still in need of a lot of work, however.  It would be a good GSoC
project or something for someone to finish up and make useful.

-stacey.



--
View this message in context: http://freebsd.1045724.n5.nabble.com/UFS-endian-conversion-tp5995230p5998528.html
Sent from the freebsd-hackers mailing list archive at Nabble.com.


More information about the freebsd-hackers mailing list