Quotas and Maximum Number of Files11-9
:KHQ4XRWDV$UH([FHHGHG
This section describes how the filer responds when quotas are exceeded and what
users see on the client systems.

0HVVDJHV'LVSOD\HGE\WKH)LOHU:KHQ4XRWDV$UH([FHHGHG

When it receives a write request, the filer first determines whether the file to be writ-
ten is in a qtree. If the write would exceed the qtree quota, the filer logs the following
error message:
tid

tree_id

: tree quota exceeded on
volume_name
If the qtree is not full but the write would cause either the user or group quota to be
exceeded, the filer logs one of the following errors:
uid

user_id

: disk quota exceeded
gid

group_id

: disk quota exceeded
where user_id is the users UID and group_id is the groups GID.
To the client, the filer returns an out of disk space error to the NFS write request or
a disk full error to the CIFS write request. The following sections describe how the
clients notify the users about quotas being exceeded.

0HVVDJHV'LVSOD\HGRQ1)6&OLHQWV

If a write from an NFS client to a filer causes a quota to be exceeded, the user experi-
ence depends on the operating system version and the application.
If a UNIX client mounts a filer without the noquota option, the login program on
the client checks to see whether the user has reached the disk quota and file quota
each time the user tries to log in to the client. The client displays a message to alert
the user before displaying the system prompt if a quota was reached. In the following
example, a user reached the disk quota on the filer mounted as /t/filer on a client
named client2:
rlogin client2
You have mail.
Block limit reached on /t/filer
client2%
Not all versions of UNIX perform the quota check as described in this section. Also,
the exact message printed varies from one version to another.
If a write causes a quota to be exceeded, the error message seen by the user
depends on the application. For example, on a SunOS 4.x client, if a user tries to save
a file using vi when his or her disk quota is reached, the error message is
Disc quota exceeded [Warning - /t/filer/home/jdoe/file1 is incomplete]