From owner-freebsd-doc@FreeBSD.ORG Fri Jul 30 13:30:05 2010 Return-Path: Delivered-To: freebsd-doc@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id A54D5106567A for ; Fri, 30 Jul 2010 13:30:05 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 7F42C8FC21 for ; Fri, 30 Jul 2010 13:30:05 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.4/8.14.4) with ESMTP id o6UDU5u9074817 for ; Fri, 30 Jul 2010 13:30:05 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.4/8.14.4/Submit) id o6UDU5WZ074814; Fri, 30 Jul 2010 13:30:05 GMT (envelope-from gnats) Resent-Date: Fri, 30 Jul 2010 13:30:05 GMT Resent-Message-Id: <201007301330.o6UDU5WZ074814@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-doc@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Dmitry Marakasov Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 6D85B106566C for ; Fri, 30 Jul 2010 13:27:35 +0000 (UTC) (envelope-from amdmi3@amdmi3.ru) Received: from smtp.timeweb.ru (smtp.timeweb.ru [92.53.116.15]) by mx1.freebsd.org (Postfix) with ESMTP id 2AE808FC22 for ; Fri, 30 Jul 2010 13:27:34 +0000 (UTC) Received: from [213.148.20.85] (helo=hive.panopticon) by smtp.timeweb.ru with esmtpsa (TLSv1:CAMELLIA256-SHA:256) (Exim 4.71) (envelope-from ) id 1Oepcb-00031n-A2 for FreeBSD-gnats-submit@freebsd.org; Fri, 30 Jul 2010 17:27:33 +0400 Received: from hades.panopticon (hades.panopticon [192.168.0.32]) by hive.panopticon (Postfix) with ESMTP id 1EBD8B865 for ; Fri, 30 Jul 2010 17:27:32 +0400 (MSD) Received: by hades.panopticon (Postfix, from userid 1000) id 07B9CB84E; Fri, 30 Jul 2010 17:27:32 +0400 (MSD) Message-Id: <20100730132732.07B9CB84E@hades.panopticon> Date: Fri, 30 Jul 2010 17:27:32 +0400 (MSD) From: Dmitry Marakasov To: FreeBSD-gnats-submit@FreeBSD.org X-Send-Pr-Version: 3.113 Cc: Subject: docs/149106: [man] xfs.5: non-working mount example X-BeenThere: freebsd-doc@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Dmitry Marakasov List-Id: Documentation project List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 30 Jul 2010 13:30:05 -0000 >Number: 149106 >Category: docs >Synopsis: [man] xfs.5: non-working mount example >Confidential: no >Severity: serious >Priority: low >Responsible: freebsd-doc >State: open >Quarter: >Keywords: >Date-Required: >Class: doc-bug >Submitter-Id: current-users >Arrival-Date: Fri Jul 30 13:30:05 UTC 2010 >Closed-Date: >Last-Modified: >Originator: Dmitry Marakasov >Release: FreeBSD 8.1-RELEASE i386 >Organization: >Environment: System: FreeBSD hades.panopticon 8.1-RELEASE FreeBSD 8.1-RELEASE #0: Fri Jul 30 02:50:28 MSD 2010 root@hades.panopticon:/async/obj/usr/src/sys/HADES i386 >Description: xfs.5 says: EXAMPLES To mount a xfs volume located on /dev/ad1s1: mount -t xfs /dev/ad1s1 /mnt However, this doesn't work: # mdconfig -a -s 256m md0 # mkfs.xfs /dev/md0 meta-data=/dev/md0 isize=256 agcount=8, agsize=8192 blks = sectsz=512 attr=0 data = bsize=4096 blocks=65536, imaxpct=25 = sunit=0 swidth=0 blks, unwritten=1 naming =version 2 bsize=4096 log =internal log bsize=4096 blocks=1200, version=1 = sectsz=512 sunit=0 blks, lazy-count=0 realtime =none extsz=4096 blocks=0, rtextents=0 # mount -t xfs /dev/md0 /mnt mount: /dev/md0 : Operation not permitted However, it works if I explicitely request read-only mount: # mount -t xfs -oro /dev/md0 /mnt # mount | tail -1 /dev/md0 on /mnt (xfs, local, read-only) >How-To-Repeat: See above >Fix: Trivial: -o ro should be added into the example >Release-Note: >Audit-Trail: >Unformatted: