SOURCES: logrotate.conf - /var/log/archiv -> /var/log/archive

Elan Ruusamäe glen at delfi.ee
Fri Dec 30 14:52:07 CET 2005


On Friday 30 December 2005 12:46, Paweł Gołaszewski wrote:
> On Fri, 30 Dec 2005, Elan Ruusamäe wrote:
> > > > > Mountmoint?
> > > >
> > > > attached diff and spec should handle common cases of /var/log/archiv
> > > > and making use any of them (new and old) identical.
> > >
> > > What is the point to make "mount --move" without updating fstab?
> > > Remember that after reboot you won't have that mount...
> >
> > mount works over symlinks too:
>
> [...]
>
> > # mount|grep archiv
> > /home/__archive on /var/log/archive type none (rw,bind)
>
> It's not the point.
> you're making manual mount which will be missing after reboot. You have it
> in your fstab.
you've cut email too much, so lets get this stright:

1. you said there's no point of "mount --move" without updating fstab.
i assume you're referring that /var/log/archiv mountpoint got changed 
to /var/log/archive with "mount --move", and old mountpoint made symlink.

2. i replied that it's irrelevant, because mount to destination being symlink 
works same way. that means mount /dev/path /var/log/archiv (archiv being 
symlink) works the same way.

and to demonstrate that, i've shown (cut in this email already) that i mounted 
old path (archiv) and data got mounted as expected.

and to be sure that 2.4 doesn't behave differently, i tested --move and 
mounting to symlink on 2.4 kernel. no side effects noticed.

-- 
glen


More information about the pld-devel-en mailing list