Sponsored Content
Operating Systems SCO Problem with nfs exports between 5.0.5 and 5.0.7 Post 302494527 by DGPickett on Monday 7th of February 2011 02:06:23 PM
Old 02-07-2011
Does this OS have truss/tusc/strace, that you can find the call that got errno 45? My errno.h says 45 is deadlock, so it might be refusing flock() calls. Locking on NFS can be a problem area.
 

10 More Discussions You Might Find Interesting

1. UNIX for Advanced & Expert Users

NFS Problem

For having shared file system i've been using nfs ,but regarding this i've some problem ,when i execute "df -ak" i can see the shared file system & i can also go there & list files ,but when i want to create anything in this area (Incld. file ,dir ....) i get permission denied. (i've shared related... (6 Replies)
Discussion started by: nikk
6 Replies

2. UNIX for Dummies Questions & Answers

/etc/exports

i have the following entry in /etc/exports which is /opt/hpxt. i am on hpux b11.0.0 questions 1) is /hpxt in the same physical machine? got confused by the meaning of export. (1 Reply)
Discussion started by: yls177
1 Replies

3. UNIX for Advanced & Expert Users

nfs exports and netmask option

Setting up nfs on a redhat ES 4 gives me following issue that i can't explain. My nfs was working perfect whith following /etc/exports on the server /home/test/nfstest 198.9.200.227(rw,sync,no_root_squash) But after a powerloss and restart of the server it only works with the... (0 Replies)
Discussion started by: progressdll
0 Replies

4. AIX

nfs problem...

Got a prob.. I am trying to export a directory and mount it on to a server using NFS. My exporting goes fine as I am able to see the shares through "exportfs -v" But when I am trying to mount the directory on a the client.. I get an error.. "system call error number - 1" pls help.... ... (3 Replies)
Discussion started by: balaji_prk
3 Replies

5. UNIX for Dummies Questions & Answers

Howto Simplify/Factorize Exports in .bash_profile

Dear expert, My .bash_profile contain the following lines: # User specific environment and startup programs export CFLAGS="-I $HOME/.libstree/include"; export LDFLAGS="-L $HOME/.libstree/lib"; export LD_LIBRARY_PATH=/home/ewijaya/MyBioTool/libstree-0.4.2/lib:${LD_LIBRARY_PATH} export... (1 Reply)
Discussion started by: monkfan
1 Replies

6. Shell Programming and Scripting

Howto Simplify Multiple Exports in .bash_profile

Dear expert, My .bash_profile contain the following lines: # User specific environment and startup programs export CFLAGS="-I $HOME/.libstree/include"; export LDFLAGS="-L $HOME/.libstree/lib"; export LD_LIBRARY_PATH=/home/ewijaya/MyBioTool/libstree-0.4.2/lib:${LD_LIBRARY_PATH} export... (1 Reply)
Discussion started by: monkfan
1 Replies

7. Programming

Listing function exports from object file

Is it possible to view all the functions exported by a given object file? "dump -tv" comes the closest, but what exactly am I looking for to determine whether the symbol exists in the object file? Essentially, I have a library that requires a call to "xdr_sizeof" and the compile is failing... (5 Replies)
Discussion started by: DreamWarrior
5 Replies

8. AIX

AIX Exports file

Why can I not add more than 1 filesystem to the /etc/exports file and export them via smitty, or command line? I have tried, I stopped the NFS daemons, edited the /etc/exports file by hand, saved it, then re-started NFS, but it only still exports the first line in the exports file. ... (4 Replies)
Discussion started by: mrmurdock
4 Replies

9. AIX

Problem with NFS

Hello everyone I need to share a file system with two Aix boxes, the version is 5.3 tl9. I create the nfs and I can see the files from both servers, but the problem with one of them is that I can write on the file or If I create a new one I canīt. On the server that I create the... (5 Replies)
Discussion started by: lo-lp-kl
5 Replies

10. UNIX for Dummies Questions & Answers

NFS not showing under /etc/fstab nor /etc/exports

Hi guys, I was asked to perform the following: On server usdfslpsap04 following NFS mounts should be disabled usdfslpwmt3:/u01/opt/wm6_data/ebiz_edi/CALIBER_data 50412232 13369544 34481872 28% /u01/opt/wm6_data/ebiz_edi/CALIBER_data usauxoradw:/DWH/Transfer/current... (1 Reply)
Discussion started by: 300zxmuro
1 Replies
flock(2)							System Calls Manual							  flock(2)

NAME
flock - Applies or removes an advisory lock on an open file SYNOPSIS
#include <sys/fcntl.h> int flock( int filedes, int operation ); PARAMETERS
Specifies a file descriptor returned by a successful open() or fcntl() function, identifying the file to which the lock is to be applied or removed. Specifies one of the following constants for flock(), defined in the fcntl.h file: Apply a shared lock. Apply an exclusive lock. Do not block when locking. This value can be logically ORed with either LOCK_SH or LOCK_EX. Remove a lock. DESCRIPTION
The flock() function applies or removes an advisory lock on the file associated with the filedes file descriptor. Advisory locks allow cooperating processes to perform consistent operations on files, but do not guarantee consistency (that is, processes may still access files without using advisory locks, possibly resulting in inconsistencies). You can use the flock() function to coordinate a file's lock status on local, CFS, and NFS file systems. The locking mechanism allows two types of locks: shared locks and exclusive locks. At any time multiple shared locks may be applied to a file, but at no time are multiple exclusive, or both shared and exclusive, locks allowed simultaneously on a file. A shared lock may be upgraded to an exclusive lock, and vice versa, simply by specifying the appropriate lock type. This results in the previous lock being released and the new lock applied (possibly after other processes have gained and released the lock). Requesting a lock on an object that is already locked normally causes the caller to be blocked until the lock may be acquired. If LOCK_NB is included in operation, then this will not happen; instead, the call will fail and errno will be set to [EWOULDBLOCK]. NOTES
Locks are on files, not file descriptors. That is, file descriptors duplicated using the dup() or fork() functions do not result in multi- ple instances of a lock, but rather multiple references to a single lock. If a process holding a lock on a file forks and the child explicitly unlocks the file, the parent will lose its lock. Processes blocked awaiting a lock may be awakened by signals. The flock() interface is not part of any UNIX standard. Therefore, if you are designing and writing applications to be portable across platforms, you should use the fcntl() file locking interface instead of flock(). RETURN VALUES
Upon successful completion, 0 (zero) is returned. Otherwise, -1 is returned and errno is set to indicate the error. ERRORS
If the flock() function fails, errno may be set to one of the following values: The file is locked and the LOCK_NB option was specified. The filedes argument is not a valid open file descriptor. A signal interrupted the flock call. The operator is not valid. The lock table is full. Too many regions are already locked. The lock is blocked by some lock from another process. Putting the calling process to sleep while waiting for that lock to become free would cause a deadlock. RELATED INFORMATION
Functions: close(2), exec(2), fcntl(2), fork(2), open(2), lockf(3) delim off flock(2)
All times are GMT -4. The time now is 07:50 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy