SUMMARY: Deleting advfs quota.* file links

From: Glen Davison (glen@maths.unsw.edu.au)
Date: Mon May 24 2004 - 03:56:28 EDT


---------- Forwarded Message ----------

Subject: Deleting advfs quota.* file links
Date: Wed, 19 May 2004 16:19:02 +1000
From: Glen Davison <glen@maths.unsw.edu.au>
To: tru64-unix-managers@ornl.gov

Q: How can I delete a hard-link to quota.user or quota.group?

BKG: I wrote and ran a perl script which made hard-links to files recursively
throughout a directory hierarchy. Unfortunately this also included the
quota.* files at the top of the fileset. I have now inserted a test to stop
this happening again, but the damage is already done.

Once I have these new links to quota.user (let's call it 'uuu') and
quota.group ('ggg') I found that

rm uuu ggg

didn't work (failed noisily) and

rm -f uuu ggg

failed silently.

Looking through the tru64 archives, I see that people have asked several
 times about deleting the quota.* files because they looked large and
 unneeded, but were always mollified by the info that the files were sparse.
 Unfortunately this doesn't help me.

Strangely, I thought I did manage to fix this same problem last week from an
earlier run, but I can't do it today.

Glen

------------------------------------------

SUMMARY

Tru64 doesn't let you delete the quota files at all. Some sort of hook in a
lower level of the AdvFS. Doesn't just recognise the name; you can happily
link to them, and move the links anywhere within the fileset.

unlink is equally ineffective.

Thanks to Bob Harris for the most informative answer. Apparently Tru64
version 5.1b "... is the first version that allows the removal of extra
st_nlink entries for the quota files." I'm running 4.0f I think.

In the end, I have pushed them to the side. I can live with them there. I
feel confident that I could get rid of them by doing a rmfset, but it's not
worth it.

Thanks to Bob, Matthew Wild and John Lanier for your suggestions.

sincerely,
Glen

--
Glen Davison			glen@maths.unsw.edu.au
Computer System Administrator	phone: +61 2 9385 7018
Maths, UNSW			fax:   +61 2 9385 7192
-------------------------------------------------------
-- 
Glen Davison			glen@maths.unsw.edu.au
Computer System Administrator	phone: +61 2 9385 7018
Maths, UNSW			fax:   +61 2 9385 7192


This archive was generated by hypermail 2.1.7 : Sat Apr 12 2008 - 10:49:59 EDT