Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 29 Jan 2003 16:05:56 +1100 (EST)
From:      Bruce Evans <bde@zeta.org.au>
To:        Russell Cattelan <cattelan@thebarn.com>
Cc:        fs@FreeBSD.ORG
Subject:   Re: restricted blocks?
Message-ID:  <20030129160134.O31111-100000@gamplex.bde.org>
In-Reply-To: <1043784569.20928.58.camel@naboo.americas.sgi.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On 28 Jan 2003, Russell Cattelan wrote:

> Does anybody have quick answer as to why block 1 isn't writable?
>
> naboo[6:24pm]#dd if=/dev/zero of=/dev/da1s1d bs=512 oseek=0 count=1
> 1+0 records in
> 1+0 records out
> 512 bytes transferred in 0.000575 secs (890518 bytes/sec)
> naboo[6:24pm]#dd if=/dev/zero of=/dev/da1s1d bs=512 oseek=1 count=1
> dd: /dev/da1s1d: Operation not permitted
> 1+0 records in
> 0+0 records out
> 0 bytes transferred in 0.000819 secs (0 bytes/sec)
> naboo[6:24pm]#dd if=/dev/zero of=/dev/da1s1d bs=512 oseek=2 count=1
> 1+0 records in
> 1+0 records out
> 512 bytes transferred in 0.000507 secs (1009630 bytes/sec)
>
> XFS uses this location for one of it's meta data block.

Most likely block 1 has a disk label on it.

The errno for this has apparently regressed from EROFS to EPERM.

Bruce


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-fs" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20030129160134.O31111-100000>