From owner-freebsd-hackers@FreeBSD.ORG Fri Mar 20 16:34:51 2015 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 7FB45926 for ; Fri, 20 Mar 2015 16:34:51 +0000 (UTC) Received: from mwork.nabble.com (mwork.nabble.com [162.253.133.43]) by mx1.freebsd.org (Postfix) with ESMTP id 67A345E4 for ; Fri, 20 Mar 2015 16:34:51 +0000 (UTC) Received: from msam.nabble.com (unknown [162.253.133.85]) by mwork.nabble.com (Postfix) with ESMTP id 4FCA0180459C for ; Fri, 20 Mar 2015 09:34:58 -0700 (PDT) Date: Fri, 20 Mar 2015 09:34:44 -0700 (MST) From: sson To: freebsd-hackers@freebsd.org Message-ID: <1426869284922-5998528.post@n5.nabble.com> In-Reply-To: <550BBF0E.2050600@freebsd.org> References: <20150309190119.GC72806@spindle.one-eyed-alien.net> <1426819192856-5998370.post@n5.nabble.com> <550BBF0E.2050600@freebsd.org> Subject: Re: UFS endian conversion MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 20 Mar 2015 16:34:51 -0000 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.