Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 29 Jun 2009 12:06:06 +0200
From:      "Ralf S. Engelschall" <rse+freebsd-stable@FreeBSD.org>
To:        freebsd-stable@freebsd.org
Subject:   Re: FreeBSD 7-STABLE and chflags on ZFS now(?) failing
Message-ID:  <20090629100606.GA40475@engelschall.com>
In-Reply-To: <4A488DD3.3030507@restart.be>
References:  <20090629085330.GA93108@engelschall.com> <4A488DD3.3030507@restart.be>

next in thread | previous in thread | raw e-mail | index | archive | help
On Mon, Jun 29, 2009, Henri Hennebert wrote:

> [...]
> >install -s -o root -g wheel -m 444   -fschg -S  libc.so.7 /lib
> >install: /lib/libc.so.7: chflags: Invalid argument
> >*** Error code 71
> [...]
> >1. I thought chflags support for ZFS was added already in the past.
> >   Can it be that just a _few_ chflags flags are supported? It looks
> >   like uchg works while the above schg fails.
> I believe that for schg `zfs get version <file_system_with /lib>`
> must be 3.
> To upgrade this: `zfs upgrade <file_system_with /lib>`

Good catch! You're right. Although the kernel is the latest one (ZFSv13)
the pool itself was created a longer time ago and hence:

| # zfs get version zp1/root
| NAME      PROPERTY  VALUE     SOURCE
| zp1/root  version   1         -

> >2. Assuming that schg was never supported on ZFS by us, why did the
> >   upgrades in the past on this FreeBSD 7-STABLE box never failed until
> >   now? Why now the first time? I would have expected that it already
> >   failed from day zero with the above error.
>
> Just a try to this strange problem:
>
> `man install` say:
>
> By default, install preserves all file flags, with the exception of the
> ``nodump'' flag.
>
> With the previous version of zfs there was no flags and so no try to
> play with flags during update.

Hmmm... ok, this can be the problem. But if this is the case, we at
least should notice this problem as such as it will also bite others
with older ZFS pools.

Yours,

--
rse@FreeBSD.org                        Ralf S. Engelschall
FreeBSD.org/~rse                       rse@engelschall.com
FreeBSD committer                      www.engelschall.com




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