From nobody@FreeBSD.org  Tue Jan  4 13:31:57 2011
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34])
	by hub.freebsd.org (Postfix) with ESMTP id A43061065675
	for <freebsd-gnats-submit@FreeBSD.org>; Tue,  4 Jan 2011 13:31:57 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from red.freebsd.org (unknown [IPv6:2001:4f8:fff6::22])
	by mx1.freebsd.org (Postfix) with ESMTP id 946278FC18
	for <freebsd-gnats-submit@FreeBSD.org>; Tue,  4 Jan 2011 13:31:57 +0000 (UTC)
Received: from red.freebsd.org (localhost [127.0.0.1])
	by red.freebsd.org (8.14.4/8.14.4) with ESMTP id p04DVveD029589
	for <freebsd-gnats-submit@FreeBSD.org>; Tue, 4 Jan 2011 13:31:57 GMT
	(envelope-from nobody@red.freebsd.org)
Received: (from nobody@localhost)
	by red.freebsd.org (8.14.4/8.14.4/Submit) id p04DVv79029588;
	Tue, 4 Jan 2011 13:31:57 GMT
	(envelope-from nobody)
Message-Id: <201101041331.p04DVv79029588@red.freebsd.org>
Date: Tue, 4 Jan 2011 13:31:57 GMT
From: Jens Jahnke <jan0sch@gmx.net>
To: freebsd-gnats-submit@FreeBSD.org
Subject: 8.1 failing to mount XFS partitions
X-Send-Pr-Version: www-3.1
X-GNATS-Notify:

>Number:         153680
>Category:       kern
>Synopsis:       [xfs] 8.1 failing to mount XFS partitions
>Confidential:   no
>Severity:       non-critical
>Priority:       high
>Responsible:    freebsd-fs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Tue Jan 04 13:40:11 UTC 2011
>Closed-Date:    
>Last-Modified:  Thu May 16 20:20:00 UTC 2013
>Originator:     Jens Jahnke
>Release:        8.1-RELEASE-p2
>Organization:
>Environment:
FreeBSD magni.rostock.home 8.1-RELEASE FreeBSD 8.1-RELEASE #0: Mon Jul 19 02:36:49 UTC 2010     root@mason.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC  amd64
>Description:
Hi,

I'm currently migrating a linux system to bsd and did not succeed in mounting xfs partitions under bsd.
The xfs partition was created under linux several years ago and runs fine under linux. If I try to mount it under bsd I get the following output:

1st try:
root@magni:~# mount -t xfs -r /dev/ad8s1 /mnt/Lagerhaus 
mount: /dev/ad8s1 : Invalid argument

2nd try:
root@magni:~# mount -t xfs -r /dev/ad8s1 /mnt/Lagerhaus
mount: /dev/ad8s1 : Operation not permitted

Using "-o ro" instead of "-r" makes no difference.
In kernel log the following two lines appear on each mount attempt:

fsname '/dev/ad8s1' logname '' rtname ''
flags 0x200000 sunit 0 swidth 0 logbufs -1 logbufsize -1

Running xfs_check /dev/ad8s1 reports no problems.

Any ideas?

Regards,

Jens
>How-To-Repeat:
Try to mount an existing xfs partition that was created under linux.
>Fix:


>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-bugs->freebsd-fs 
Responsible-Changed-By: linimon 
Responsible-Changed-When: Mon Jan 10 01:24:36 UTC 2011 
Responsible-Changed-Why:  
reclassify and assign. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=153680 

From: System Integrated <info@system-integrated.de>
To: bug-followup@FreeBSD.org, jan0sch@gmx.net
Cc:  
Subject: Re: kern/153680: [xfs] 8.1 failing to mount XFS partitions
Date: Thu, 16 May 2013 22:03:37 +0200

 Hey there,
 
 if got the exact same error on FreeBSD 9.0-RELEASE and 9.1-RELEASE.
 The bug prevents me to migrate from linux to freebsd on some systems.
 
 Needs to be fixed, i guess.
 
 Kind regards
>Unformatted:
