SUMMARY: DISK QUOTA on Files

From: Pulak Rakshit <pulakr_at_cableol.net>
Date: Tue, 16 Apr 1996 18:39:29 +-100

The following people responded with a number of suggestion:

        Knut.Hellebo_at_nho.hydro.com
        BRENNAN_at_HAL.HAHNEMANN.EDU
        CJS35102%US0A20.decnet_at_usav01.glaxo.com
        rwa_at_cs.athabascau.ca
        hagan_at_cih.com

1. In csh/tcsh you have the 'limit' command, in sh/ksh you have the 'ulimit'
command.

2. Use AdvFS fetures. Create a file set for the file you want limited.
Set the 'file-set' quota to the maximum size you want the file to reach. Move
the file from the original partition or file set to this new file set. Create
a soft (symbolic?) link from the original home of the file to the new file, or
if the file is in a directory by itself, simply mount the file set at the proper
location in your File system.

3. If you want to cut it back, you could have a job that runs every so
    often that does something like ...

            find /var/adm -name BIGLOGFILE -size +2000k \
                    -exec cat /dev/null > /var/adm/BIGLOGFILE \;


Thanks

Pulak
Received on Tue Apr 16 1996 - 20:16:38 NZST

This archive was generated by hypermail 2.4.0 : Wed Nov 08 2023 - 11:53:46 NZDT