- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - OpenVMS
- >
- Limit creation of different files on a directory
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Forums
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-18-2008 01:52 AM
тАО06-18-2008 01:52 AM
e.g
A directory has 4 files in it.
The 5th one needs to be restricted.
The files are all different ofcourse.
Thanks
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-18-2008 06:14 AM
тАО06-18-2008 06:14 AM
Re: Limit creation of different files on a directory
Do you want to limit the directory to no more than four files total?
Also, how are the files being created? If they're being created from within an application, then the application may be able to take care of what you want. Of course, the specifics of how you'd do that would depend on the application.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-18-2008 06:22 AM
тАО06-18-2008 06:22 AM
Re: Limit creation of different files on a directory
That may be a good approach in this case.
They also often ask for specifics about the operating system version, application, and hardware that you're using.
These guys are good at figuring out how to solve problems, and very generous with their help, but I think a little more info from you might be helpful here.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-18-2008 07:38 AM
тАО06-18-2008 07:38 AM
SolutionViewed solely with the information available here, this particular solution to the unstated requirement would require code changes within the internals of the OpenVMS file system implementation.
I don't know that I've ever encountered a file system with a four file limit, or anything even remotely similar to this request.
There may well be a solution here, but not to the question posed. What particular application requirement are you working on here here? What problem are you looking to solve? And yes, the version, platform and the usual other questions also apply.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-18-2008 07:30 PM
тАО06-18-2008 07:30 PM
Re: Limit creation of different files on a directory
If have discretion where this restricted directory resides, then you can put it on a virtual disk (i.e. ld device) that that is initialized with /maximum_files=15. The number 15 provided 10 volume meta-data files created when you initialize the volume plus the application directory file plus 4 data files.
You have the issue of sizing the virtual disk to be able ensure the data files don't allocate too much space. If the data files grow sporatically, they can become fragmented. In whic case, you can eventually get HEADERFUL or INDEXFULL errors when it can't get a file extension header.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-01-2008 06:14 AM
тАО07-01-2008 06:14 AM
Re: Limit creation of different files on a directory
run a script every minute or so that counts the files with e.g. f$sea or dir/tot. As soon as the number of files > x you make the directory file read only (thus allowing read/update only).
fwiw
Wim