Thanks otheus!
This will be terribly helpfull. Actually I still need this function to use the mirror function in lftp. I need to exclude directories that are mount points like this:
sometimes in Solaris 8 when I go to mount filesystems using either the mount command or by editing the /etc/vfstab, i get a nice little error message saying the the number of allowable mount points has been exceeded. I have read man pages until I am blue in the face and no where can I find what the... (3 Replies)
How do I make a mount point reconnect at boot without editing /etc/fstab? Is there an option (or switch) to make this persistent when issuing the mount command from a client? (1 Reply)
Hi
Solaris 10
On server A, there is a directory called data with 10 files. This data directory has a further 3 subdirectories, gl, pay, contract (for example)
On server B, I want to see the server A data directory
commands used:
on server A, share -F nfs -o ro -d "<description">... (1 Reply)
When taking a snap, I have a script that stops any active snap. When running the script, I'm getting a message that u02 and u04 are already mounted.
How can I find out what process(es) is/are latching on the these mount points?
Thank you for your time. (1 Reply)
Hi,
I have some issue with the mounting/unmounting on my sun solaris box.
Actually their is one script that mount the file system take the backup of databases and unmount the file system.Last week this script failed to mount the file system with the below error message:
+ echo fs_check.sh:... (1 Reply)
hi,
I believe a mount point does not have to be a physical disk, but rather a logical one? Is this correct? if so, how can I find out if my mount points are on different physical disks?
thanks (9 Replies)
Hi all,
First of all I dont even know the ABC of scripting ..
But now I want a Script to see the mount points of the file systems
Can any body help plsssssssss :o (1 Reply)
Hi folks,
I have been asked to performed the following:
Add the following new moint points systemA:/avp and SystemB:/usr/sap/trans to be the new linux server ZZZ
How can I add those mount points and how those mount points can become another linuz server?:wall::wall::wall: (2 Replies)
Hi Everyone,
Just in need of your help again, I have managed to get a script to check the linux disk usage stuff. But wanted to tweak it little more to get the desired output.
Requirement:
Now its querying only one mount point, As its not saving in array instead calling it as variables. So... (1 Reply)
Discussion started by: thiyagoo
1 Replies
LEARN ABOUT ULTRIX
statfs
statfs(3) Library Functions Manual statfs(3)Name
statfs, - get file system statistics
Syntax
#include <sys/types.h>
#include <sys/param.h>
#include <sys/mount.h>
statfs(path, buffer)
char *path;
struct fs_data *buffer;
Description
The library routine returns up-to-date information about a mounted file system. The path is the path name of any file within the mounted
file system. The buffer is a pointer to an structure as defined in
Return Values
Upon successful completion, a value of is returned. If the file system is not mounted, is returned. Otherwise, is returned and the global
variable errno is set to indicate the error.
Diagnostics
The library routine fails if one or more of the following are true:
[ENOTDIR] A component of the path prefix of path is not a directory.
[EINVAL] path contains a character with the high-order bit set.
[ENAMETOOLONG] The length of a component of path exceeds 255 characters, or the length of path exceeds 1023 characters.
[ENOENT] The file referred to by path does not exist.
[EACCES] Search permission is denied for a component of the path prefix of path.
[ELOOP] Too many symbolic links were encountered in translating path.
[EFAULT] buffer or path points to an invalid address.
[EIO] An I/O error occurred while reading from the file system.
See Alsogetmnt(2), getmountent(3)statfs(3)