On Apr 12 12:59:16, Alexander Polakov wrote:
> * Jan Stary <[email protected]> [110412 08:47]:
> > What version of OpenBSD are you using?
>
> I'm using 4.9-current snapshot updated yesterday.
>
> > On Apr 12 02:06:51, Alexander Polakov wrote:
> > > I am probably misunderstanding something, but are DUID's supposed to be
> > > used in place of device filenames in fstab? I suppose they are,
> > > so this looks strange to me:
> > >
> > > % sudo mount f777cc5bbeded528.a
> > > mount: can't find fstab entry for f777cc5bbeded528.a.
> > >
> > > % grep f777 /etc/fstab
> > > f777cc5bbeded528.a /home ffs rw,nodev,nosuid,noauto 0 0
Aaaah. You mean to 'mount /home', not to 'mount f777cc5bbeded528.a'.
> > > I have got a diff.
> > >
> > > Index: sbin/mount/mount.c
> > > ===================================================================
> > > RCS file: /cvs/src/sbin/mount/mount.c,v
> > > retrieving revision 1.51
> > > diff -u -r1.51 mount.c
> > > --- sbin/mount/mount.c 6 Apr 2011 11:36:26 -0000 1.51
> > > +++ sbin/mount/mount.c 11 Apr 2011 21:56:38 -0000
> > > @@ -232,9 +232,11 @@
> > > mntonname = mntbuf->f_mntonname;
> > > } else {
> > > if ((fs = getfsfile(mntpath)) == NULL &&
> > > - (fs = getfsspec(mntpath)) == NULL)
> > > - errx(1, "can't find fstab entry for %s.",
> > > - *argv);
> > > + (fs = getfsspec(mntpath)) == NULL &&
> > > + (isduid(*argv, 0) == 0 ||
> > > + (fs = getfsspec(*argv)) == NULL))
> > > + errx(1, "can't find fstab entry for
> > > %s.",
> > > + *argv);
> > > if (BADTYPE(fs->fs_type))
> > > errx(1, "%s has unknown file system type.",
> > > *argv);
> > > --
> > > Alexander Polakov | plhk.ru
>
> --
> Alexander Polakov | plhk.ru