Hmmm, should us Solaris users have concern in this area?  Is there a better
way to do the function than using "unlinking" that would work for all OS's.
I don't know that I like having "residue" around...  sounds like a problem
that could build up and hit me when I least expect it...    I can hack
around in C code decently.  Should I make a change just to my source code or
should the whole vpopmail code base be changed?  I think I remember the code
base changing to this "unlinking" method not too long ago.  Maybe it wasn't
a good idea for everyone...

Thoughts?

Chris Bunnell

----- Original Message -----
From: "Alex Hathaway" <[EMAIL PROTECTED]>
To: "David Wartell" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
Sent: Friday, June 29, 2001 12:27 PM
Subject: RE: vpopmail 4.10.24 vdeldomain not removing a domaind directory
properly and leaving links in /var/vpopmail/domain on Solaris 7 x86


> function vdelfiles in vpopmail.c unlinks files... This could be the reason
> your seeing "residue"
>
> Since solaris' unlink command bypasses any normal quota/disk control your
> going to see this residue. After a reboot a reallocation of the tables
> should spark it back to reality. (or a fsck) :P
> -----Original Message-----
> From: David Wartell [mailto:[EMAIL PROTECTED]]
> Sent: Friday, June 29, 2001 12:23 PM
> To: [EMAIL PROTECTED]
> Subject: vpopmail 4.10.24 vdeldomain not removing a domaind directory
> properly and leaving links in /var/vpopmail/domain on Solaris 7 x86
>
>
> I have vpopmail installed 4.10.24 vdeldomain running on Solaris 7 x86.
> vdeldomain is not removing a domains directory properly from
> /var/vpopmail/domains.
>
> Here is a sequence of commands which repoduce the error.  The commands
were
> run on a fresh install of vpopmail.
> Notice the link count for the domains directory.
> apollo:/var/vpopmail # ll
> total 7
> drwxr-xr-x   2 vpopmail vchkpw        512 Jun 29 14:51 bin/
> drwxr-xr-x   4 vpopmail vchkpw        512 Jun 29 14:51 doc/
> drwx------   2 vpopmail vchkpw        512 Jun 29 14:51 domains/
> drwxr-xr-x   2 vpopmail vchkpw        512 Jun 29 14:50 etc/
> drwxr-xr-x   2 vpopmail vchkpw        512 Jun 29 14:51 include/
> drwxr-xr-x   2 vpopmail vchkpw        512 Jun 29 14:51 lib/
> drwx------   2 vpopmail vchkpw        512 Jun 29 14:51 users/
>
> I add a domain and of course the link count goes up as expected
> apollo:/var/vpopmail # bin/vadddomain foo.com 2782y2
> You have mail in /usr/var/mail/
> apollo:/var/vpopmail # ll
> total 7
> drwxr-xr-x   2 vpopmail vchkpw        512 Jun 29 14:51 bin/
> drwxr-xr-x   4 vpopmail vchkpw        512 Jun 29 14:51 doc/
> drwx------   3 vpopmail vchkpw        512 Jun 29 14:52 domains/
> drwxr-xr-x   2 vpopmail vchkpw        512 Jun 29 14:50 etc/
> drwxr-xr-x   2 vpopmail vchkpw        512 Jun 29 14:51 include/
> drwxr-xr-x   2 vpopmail vchkpw        512 Jun 29 14:51 lib/
> drwx------   2 vpopmail vchkpw        512 Jun 29 14:51 users/
>
> I add a second domain and the link count of domain goes up again as
expected
> apollo:/var/vpopmail # bin/vadddomain foo2.com 2782y2
> apollo:/var/vpopmail # ll
> total 7
> drwxr-xr-x   2 vpopmail vchkpw        512 Jun 29 14:51 bin/
> drwxr-xr-x   4 vpopmail vchkpw        512 Jun 29 14:51 doc/
> drwx------   4 vpopmail vchkpw        512 Jun 29 14:52 domains/
> drwxr-xr-x   2 vpopmail vchkpw        512 Jun 29 14:50 etc/
> drwxr-xr-x   2 vpopmail vchkpw        512 Jun 29 14:51 include/
> drwxr-xr-x   2 vpopmail vchkpw        512 Jun 29 14:51 lib/
> drwx------   2 vpopmail vchkpw        512 Jun 29 14:51 users/
>
> Now I remove a domain and link count of domains does NOT go down!  This
> means the disk space and inodes are still being used.  What
> is vpopmail doing when it deletes fuiles and directories?
> apollo:/var/vpopmail # bin/vdeldomain foo2.com
> apollo:/var/vpopmail # ll
> total 7
> drwxr-xr-x   2 vpopmail vchkpw        512 Jun 29 14:51 bin/
> drwxr-xr-x   4 vpopmail vchkpw        512 Jun 29 14:51 doc/
> drwx------   4 vpopmail vchkpw        512 Jun 29 14:52 domains/
> drwxr-xr-x   2 vpopmail vchkpw        512 Jun 29 14:50 etc/
> drwxr-xr-x   2 vpopmail vchkpw        512 Jun 29 14:51 include/
> drwxr-xr-x   2 vpopmail vchkpw        512 Jun 29 14:51 lib/
> drwx------   2 vpopmail vchkpw        512 Jun 29 14:51 users/
> apollo:/var/vpopmail # ll domains
> total 1
> drwx------   3 vpopmail vchkpw        512 Jun 29 14:52 foo.com/
> apollo:/var/vpopmail #
>
> I have tried to verify it is not my system.  I created directories and
then
> removed them in the domains directory with mkdir and
> rmdir and didn't see the same behavior.  The Solaris system has both been
> running production systems for about 2 years now.  I did
> notice that the configure for vpopmail could not find my fdatasync().  I
> have noticed this behavior with 4.10.22 and 4.10.23 as
> well.
>
> Any ideas?
>
> -David Wartell
>
>
>

Reply via email to