11-20-2002
If you used stat, you had the path of the file. You need to use that path to open the file so you can be it.
There is no system call to read a file by inode number. If you also had the inode generation number, it would be possible to forge a nfs filehandle and read the file via nfs, assuming it was exported. But stat() won't return that.
It is possible to open the block special file of the filesystem, go read the real inode, and then chase down the data blocks. The code required varies greatly from filesystem to filesystem. The program "backup" does this. You can find the source code for "backup" if you poke around.
9 More Discussions You Might Find Interesting
1. UNIX for Advanced & Expert Users
Hi All,
I am facing a connection problem with Oracle 10g on Solaris 10 when my application (started by /etc/rc3.d at node reboot) tries to establish a session after reboot of the node where my application is running (NCR UNIX (MP RAS)).
I find that my application (run as a deamon process)... (1 Reply)
Discussion started by: sowjanya
1 Replies
2. Shell Programming and Scripting
how would i show all i-node addresses of all files in my directory (1 Reply)
Discussion started by: trob
1 Replies
3. Linux
Hi,
Does the output of the command
numactl --hardware
available: 1 nodes (0-0)
node 0 cpus: 0 1
node 0 size: 8155 MB
node 0 free: 3231 MB
No distance information available.
where,
node 0 size: 8155MB
mean that the local memory associated with node 0 is 8155MB?
Can anyone guide me... (0 Replies)
Discussion started by: heartbreakkid
0 Replies
4. SuSE
Hi,
Does the output of the command
numactl --hardware
available: 1 nodes (0-0)
node 0 cpus: 0 1
node 0 size: 8155 MB
node 0 free: 3231 MB
No distance information available.
where,
node 0 size: 8155MB
mean that the local memory associated with node 0 is 8155MB?
Can anyone guide me... (1 Reply)
Discussion started by: heartbreakkid
1 Replies
5. Solaris
Hi,
Is it possible to have a Solaris cluster of 2 nodes at SITE-A using SVM and creating metaset using say 2 LUNs (on SAN). Then replicating these 2 LUNs to remote site SITE-B via storage based replication and then using these LUNs by importing them as a metaset on a server at SITE-B which is... (0 Replies)
Discussion started by: dn2011
0 Replies
6. Red Hat
Hi,
We are having many RedHat linux Server with Cluster facility for availability of service like HTTPD / MySQL.
We face some issue while some issue related to power disturbance / fluctuation or Network failure. There is two Cluster Node configured in... (0 Replies)
Discussion started by: hirenkmistry
0 Replies
7. Homework & Coursework Questions
Hi Experts,
I am in need of running a script from one node say node 1 via node 2.
My scheduling tool dont have access to node2 , so i need to invoke the list file from node1 but the script needs to run from node2. because the server to which i am hitting, is having access only for the node... (5 Replies)
Discussion started by: arun1377
5 Replies
8. HP-UX
Hi,
We have HP UX service guard cluster on OS 11.23. Recently 40+ LUNs presented to both nodes by SAN team but I was asked to mount them on only one node. I created required VGs/LVs, created VxFS and mounted all of them and they are working fine. Now client requested those FS on 2nd node as... (4 Replies)
Discussion started by: prvnrk
4 Replies
9. UNIX for Beginners Questions & Answers
Someone, please help on this issue:-
Note : for security reason i didn't mention hostnames and ips.
==============================================================================
# ntpstat
unsynchronised
polling server every 1024 s
Ntpstat showing unsynchronised.
... (29 Replies)
Discussion started by: shanmugaraj
29 Replies
LEARN ABOUT SUSE
di_minor_next
di_minor_next(3DEVINFO) Device Information Library Functions di_minor_next(3DEVINFO)
NAME
di_minor_next - libdevinfo minor node traversal functions
SYNOPSIS
cc [ flag... ] file... -ldevinfo [ library... ]
#include <libdevinfo.h>
di_minor_t di_minor_next(di_node_t node, di_minor_t minor);
PARAMETERS
minor Handle to the current minor node or DI_MINOR_NIL.
node Device node with which the minor node is associated.
DESCRIPTION
The di_minor_next() function returns a handle to the next minor node for the device node node. If minor is DI_MINOR_NIL, a handle to the
first minor node is returned.
RETURN VALUES
Upon successful completion, a handle to the next minor node is returned. Otherwise, DI_MINOR_NIL is returned and errno is set to indicate
the error.
ERRORS
The di_minor_next() function will fail if:
EINVAL Invalid argument.
ENOTSUP Minor node information is not available in snapshot.
ENXIO End of minor node list.
ATTRIBUTES
See attributes(5) for descriptions of the following attributes:
+-----------------------------+-----------------------------+
| ATTRIBUTE TYPE | ATTRIBUTE VALUE |
+-----------------------------+-----------------------------+
|Interface Stability |Evolving |
+-----------------------------+-----------------------------+
|MT-Level |Safe |
+-----------------------------+-----------------------------+
SEE ALSO
libdevinfo(3LIB), attributes(5)
Writing Device Drivers
SunOS 5.10 1 Dec 1998 di_minor_next(3DEVINFO)