HP UX Common Internet File System (CIFS) Client/Server Software manual File Locking Overview, Acl

Page 6

Chapter 3 File Locking Overview

File locking is typically initiated by the file system – either by configuration parameters or API and function calls – to prevent data corruption by more than one process accessing a file while it is open in write mode (either dual writes occurring, or reading a file that has since been changed due to a write – “stale data”). There are two important factors to consider when enabling file locking: first – when to use file locking; second – how to lock the file.

File locking provides a security and/or integrity benefit, but the benefit is not free. Locking uses system resources, therefore it can affect performance. In addition, some kinds of locking can actually enhance performance, but expose data to corruption under certain types of access. Also, using file-system -provided file locking can be redundant if data is already locked or managed at the application level, thus using system resources affecting performance for no benefit. Finally, how data is used should partially dictate how files are locked: if a file is to be opened read-only, then locking the file may not make much sense.

HP Sales Force personnel often encounter RFPs that include CIFS/NFS cross-platform file locking as a requirement. It is essential that the TC or SR understand what security and data integrity issues are driving the file locking requirement. Customers often include such requirements without understanding their own environment.

HP-UX 11 CIFS/9000 / NFS File Server & Storage

Files Accessed by

Files Accessed by

Windows Clients

NFS Clients

Shared CIFS/NFS

File Access

Filename

rwx

ACL

Data Mgt

Locking Needed?

 

 

 

 

 

Filename1

Read only

No ACL

No data management

NO

 

 

 

 

 

Filename2

Read/Write

ACE on ACL

No data management

NO

 

 

 

 

 

Filename3

Read/Write

No ACL

PDM, Clearcase , etc…

NO

 

 

 

 

 

Filename4

Read/Write

No ACL

No data management

YES – Locking Needed

 

 

 

 

 

1.Are there files or directories that will be accessed by both CIFS and NFS?

2.How many files or directories, and what kind of data?

3.Will clients have write access to the files or directories?

4.Are there ACLs on the file or directories that manage client access?

5.Is there a data management application that administers access (Clearcase or PDM server)?

6

Image 6
Contents Version 1.03 September Eric Roseme Snsl Advanced Technology CenterE0300 Legal Notices Copyright NoticesContents Introduction CIFS/9000 Product Overview File Locking Overview ACLPage File Locking Implementations Windows CifsPage Unix NFSPC NFS Mandatory Share Mode Locking Open Mode CIFS/9000 File Locking ImplementationPage Page Page Windows only Client Access Local File System CIFS/9000 File Locking Interoperability ExamplesPage Windows only Client Access NFS Mounted File System Page Windows and Unix Client Access Local File System Page Windows and Unix Client Access NFS Mounted File System Page UNIX/NFS PC-NFS Page Unix PC-NFS Page Clients Page Byte Range Locking Mandatory Share Mode Open Mode CIFS/9000CIFS/9000 Locking Summary OplocksCIFS/9000 Competition Locking Summary Mandatory Share Mode Open Mode Network AppliancePage Mandatory Share Mode Open Mode EMC Celerra EMC CelerraPage Auspex NeTservices Mandatory Share Mode Open Mode Auspex NeTservicesPage Mandatory Share Mode Open Mode Veritas FSE Veritas File Server EditionLocking Summary Table EMCCIFS/9000 File Locking Interoperability Summary Page Smb.conf for Windows-Only Access Appendix a smb.conf ExamplesSmb.conf for Mixed-Mode Access Appendix B Sales Tool Locking Technology Examples Determine Locking RequirementByte Range Locking CIFS/NFS Open Mode Locking CIFS/NFS Open Mode Locking Competitor’s Claims for NFS Non-Locking Protection
Related manuals
Manual 21 pages 36.77 Kb