To set quota on a folder

Hi guys,

I know that we can set quota limit for an OS user on a filesystem.

But I have a different objective to achieve -

can we set a limit on a folder on a filesystem.
Let use I have a 'apps' folder in some filesystem. Disc space occupied by 'apps' should not be more that 5GB.

Searched on net, but didn't find any useful information.

Thanks,

quota may be used to set user or group limit...

Implementing Disk Quotas

The answer is given by the following post.

With quota you cannot set a limit on a particular subdirectory within a filesystem. The only way you could use quota to limit an ../apps subdirectory to 5Gb would be to mount a separate filesystem on ../apps and set a quota on that filesystem.

Thanks fpmurphy, I will check your idea. Looks like it will work.

royalliege, you suggestion will set quota on a user. not on a subdirectory.

Thanks guys for your replies.