11-16-2005
Quote:
Originally Posted by jim mcnamara
Thank you.
How would you interpret this?
Umm, I would interpret it as having nothing at all to do with what I said. I cannot see what command generated that output. My suggestion was to produce two lines of output, one from a directory and a second from that directory's parent. I seem to be counting three lines of output and I do not believe that I see a parent child relationship between any two of the three lines. And more stuff was removed?? Two lines is all you should get! A mount point is in a different filesystem than it's parent. Comparing the difference between a directory and its parent is the key. Again, cd to some-directory, then do:
df -n . ; df -n ..
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
I am running HPUX and using WLM (workload manager). I want to write a script to fork CPUs to basically take CPUs from other servers to show that the communication is working and CPU licensing is working. Basically, I want to build a script that will use up CPU on a server. Any ideas? (2 Replies)
Discussion started by: cpolikowsky
2 Replies
2. HP-UX
I'm sharing this in case anybody needs it. Modified from the original solaris pwage script. This modified hpux script will check /etc/password file on hpux trusted systems search /tcb and grep the required u_succhg field. Calculate days to expiry and notify users via email.
original solaris... (2 Replies)
Discussion started by: sparcguy
2 Replies
3. Shell Programming and Scripting
Dear Guru's
Given a full filename /a/b/c/d/file.txt how do i determine what part is the mount point ( say /a/b).
Cheers, Karel (6 Replies)
Discussion started by: karelb
6 Replies
4. UNIX for Dummies Questions & Answers
Hello.
What's the best way to ensure that a NFS filesystem mounted from a disk-cabine (NAS) is accessible?
My proposal:
1. ping to the ip of the cabine
2. verify filesystem is mounted
3. touch a file inside the /mountpoint
Any other suggestions?
Thank you! (2 Replies)
Discussion started by: asanchez
2 Replies
5. UNIX for Advanced & Expert Users
Hello All,
I am new to System/plat-form administration work. Right now I am facing some issues while creating the filesystem and mounpoint. I am using Linux 6.0 SuSE 11. Last time I was used one command to partition the given space along with filesystem in SuSE 9 and it was done in GUI mode but... (0 Replies)
Discussion started by: nvkuriseti
0 Replies
6. Solaris
One of our mountpoint shows 100% but we have less data on that mountpoint. Pls help me to find which data/process holds the space.
bash-3.00$ cd /oracle/server_software/oracle10
bash-3.00$ du -sh *
0K admin
260M app
0K flash_recovery_area
0K lost+found
0K oradata
... (6 Replies)
Discussion started by: rock123
6 Replies
7. UNIX for Advanced & Expert Users
Can some one help me i try to mkfs new mountpoint from storageIBM but give some problem
# mkfs -t ext3 /dev/sdd1
mke2fs 1.39 (29-May-2006)
/dev/sdd1 is apparently in use by the system; will not make a filesystem here!
my os is redhat 5.3
using fdisk
# fdisk -l
Disk /dev/sda: 298.9... (4 Replies)
Discussion started by: vickyid04
4 Replies
8. AIX
root@atldc-oragrid-ux01:/oragrid_01> du -sg *
0.58 11gR2gridBase
47.31 Grid_11203
4.17 app
0.00 lost+found
0.01 oraInventory
root@atldc-oragrid-ux01:/oragrid_01> cd Grid_11203
root@atldc-oragrid-ux01:/oragrid_01/Grid_11203> du -sg *|sort
0.00 JRE
0.00 OPatch_old
0.00 ... (11 Replies)
Discussion started by: Vishal_dba
11 Replies
9. Shell Programming and Scripting
Hi,
I am new to shell scripting. I prepared a very simple script to monitor mount points but not geting desired output.
df -h|awk -F' ' '{ if ($5 >= 80) print "CRITICAL\n" $NF " mount point has reached " $5;}'|sed -n '3,$p'
When I run above script in Sun solaris box it is executing... (8 Replies)
Discussion started by: sv0081493
8 Replies
10. HP-UX
Hi.
I'm having problems with my HP C8000 and 11.11 (ifs client needs to be restarted every week), trying to get it worked out.
When I searched the web it seems, I require the following patches:
PHKL_41041, PHKL_43823, PHKL_43577
Is there anyway to get hold of these packages?
Many thanks... (2 Replies)
Discussion started by: plantage
2 Replies
LEARN ABOUT SUSE
debugfs_create_file
DEBUGFS_CREATE_FILE(9) The debugfs filesystem DEBUGFS_CREATE_FILE(9)
NAME
debugfs_create_file - create a file in the debugfs filesystem
SYNOPSIS
struct dentry * debugfs_create_file(const char * name, mode_t mode, struct dentry * parent, void * data,
const struct file_operations * fops);
ARGUMENTS
name
a pointer to a string containing the name of the file to create.
mode
the permission that the file should have.
parent
a pointer to the parent dentry for this file. This should be a directory dentry if set. If this paramater is NULL, then the file will
be created in the root of the debugfs filesystem.
data
a pointer to something that the caller will want to get to later on. The inode.i_private pointer will point to this value on the open
call.
fops
a pointer to a struct file_operations that should be used for this file.
DESCRIPTION
This is the basic "create a file" function for debugfs. It allows for a wide range of flexibility in creating a file, or a directory (if
you want to create a directory, the debugfs_create_dir function is recommended to be used instead.)
This function will return a pointer to a dentry if it succeeds. This pointer must be passed to the debugfs_remove function when the file is
to be removed (no automatic cleanup happens if your module is unloaded, you are responsible here.) If an error occurs, NULL will be
returned.
If debugfs is not enabled in the kernel, the value -ENODEV will be returned.
COPYRIGHT
Kernel Hackers Manual 2.6. July 2010 DEBUGFS_CREATE_FILE(9)