Sponsored Content
Operating Systems Solaris How to see actual filename that File Descriptor is pointing to for a given processID? Post 302478270 by kchinnam on Tuesday 7th of December 2010 01:15:41 PM
Old 12-07-2010
jlliagre I think you are right. Where can I find reference information that could explain what you said.
If its just waiting to be closed, even after few minutes same File Descriptors that are pointing to base disk location are still there. Its as if they are there for some purpose..

Last edited by kchinnam; 12-07-2010 at 02:26 PM.. Reason: more info
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

file activity (open/closed) file descriptor info using KORN shell scripting

I am trying to find a way to check the current status of a file. Such as some cron job processes are dependent on the completion of others. if a file is currently being accessed / modified or simply open state I will wait until it is done being processed before attempting the next process on that... (3 Replies)
Discussion started by: Gary Dunn
3 Replies

2. UNIX for Dummies Questions & Answers

File Descriptor Help

What is a file descriptor in Unix?? How to find a file descriptor of a file in Unix?? Does it have anything to do with the Inode numbers?? (3 Replies)
Discussion started by: rahulrathod
3 Replies

3. Shell Programming and Scripting

File Descriptor

Hello All, Im opening a file desciptor in perl and sending data using print CMD "$xyz". is there a limit to the length of the string that I can give to this CMD at a time. (3 Replies)
Discussion started by: rimser9
3 Replies

4. UNIX for Dummies Questions & Answers

File Descriptor

Hi What the below path contains? /proc/<pid>/fd (1 Reply)
Discussion started by: siba.s.nayak
1 Replies

5. Shell Programming and Scripting

How to create a user interface pointing to a file?

I have to create a user interface in which user can easily update ,delete or insert a new record which is pointing to a file in AIX Server? Using awk,sed ican update ,modify the file. how to create a link to userlike GUI(without using Tomcat,IIS) (3 Replies)
Discussion started by: laknar
3 Replies

6. Shell Programming and Scripting

Open the file and replace the variable with actual value

Hi, i have a sql file named sample.sql. The query is given below. select count(*) from $TABLE_NAME In the main script, i am sourcing this sql. I need to replace the $TABLE_NAME with actual value, before running the query. How can i achieve that? The logic i tried is given below:... (3 Replies)
Discussion started by: bharathappriyan
3 Replies

7. Solaris

Before I delete any file in Unix, How can I check no open file handle is pointing to that file?

I know how to check if any file has a unix process using a file by looking at 'lsof <fullpath/filename>' command. I think using lsof is very expensive. Also to make it accurate we need to inlcude fullpath of the file. Is there another command that can tell if a file has a truely active... (12 Replies)
Discussion started by: kchinnam
12 Replies

8. Shell Programming and Scripting

Unlink and copy actual file

Hello, I have a set of directories, which has inside them, symbolic links to some files. What i would like to do is to covert the links into actual files, i.e. remove the link and copy the actual file here... I tried to see unlink command but i think all it does is delete the link, is... (2 Replies)
Discussion started by: prasbala
2 Replies

9. Shell Programming and Scripting

redirecting with file descriptor

hello, Someone can help me with redirectors? I am writing this script in bash enviroment on Fedora: exec 4<> /dev/tcp/10.10.11.30/5000 #open socket in input/output strings<&4 >file.txt & I send file descriptor 4 to string command to purge data stream from special char while come from... (3 Replies)
Discussion started by: rattoeur
3 Replies

10. Shell Programming and Scripting

Actual SQL instead of using a file from within a shell script

I am very noobish to UNIX, our guy is on vacation so I am trying to take up some slack while he is away. Typically when we use sql from within a shell script, we do so from a file containing the sql. Example: $ORACLE_HOME/bin/sqlplus $ORA_DBCU/$ORA_DBCP @${cron_dir}/${report_file}.sql ... (10 Replies)
Discussion started by: biobill
10 Replies
ffm(4)							     Kernel Interfaces Manual							    ffm(4)

NAME
ffm - File-on-File Mounting File System STANDARDS
Interfaces documented on this reference page conform to industry standards as follows: fattach(): XSH4.2 fdetach(): XSH4.2 Refer to standards(5) for more information about industry standards and their associated tags. DESCRIPTION
The File-on-File Mounting (FFM) file system allows regular files, character device special files, or block device special files to be mounted on regular files or directories. The ffm file system is used with the System V Release 4-compatible library functions fattach(3) and detach(3) to enable a user process to have one file descriptor pointing to the data associated with a named file and a named STREAM. When one name is active, the other name is invisible. For example, a user application mounts a file descriptor from a file named a_file on a file that is named b_file. The file descriptor of file a_file is accessible by two names, a_file and b_file. However, when the user application attempts to open either file, only the file descriptor for a_file is returned: the file descriptor for b_file is invisible while a_file is mounted over it. The fattach(3) function mounts a file over another; the fdetach(3) function removes the association so the underlying file can be accessed. The user process can also mount a regular file over a regular file in order for it to be a clone of the underlying file. [Do not confuse this clone with an AdvFS clone fileset.] In this case, the clone file is a character device special file that is associated with a device driver that handles such files. As a result, a user can specify one clone entry and then open this device multiple times. Each time the device is opened, a new vnode is obtained but exactly the same device behavoir is also obtained: the behavior is cloned. That mount occurs if the -o clone option is used in the mount command or as an element of a ffm line in the /etc/fstab file. In this case, there are two files with identical contents, separate names, and separate file descriptors. EXAMPLES
The following example shows an ffm mount of a_file on b_file. If the du command were executed, its display would show a_file in the file system column and b_file in the Mounted on column: # mount -t ffm a_file b_file The following example shows an ffm mount of a_file on b_file, with the mount -o clone option specifying that a_file is a clone of b_file. # mount -t ffm -o clone a_file b_file RESTRICTIONS
The user process must be the root user or must be the owner of the files and must have write permissions for the files. [Tru64 UNIX] Before you can use the ffm file system, you must configure the kernel option FFM_FS into the kernel. See System Administra- tion for information about configuring the kernel. RELATED INFORMATION
Commands: fdetach(8), mount(8) Functions: fattach(3), fdetach(3), isastream(3), chmod(2), mount(2) Interfaces: streamio(7) Files: fstab(4) Standards: standards(5) delim off ffm(4)
All times are GMT -4. The time now is 09:47 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy