Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

vcount(9) [debian man page]

VCOUNT(9)						   BSD Kernel Developer's Manual						 VCOUNT(9)

NAME
vcount, count_dev -- get total number of references to a device SYNOPSIS
#include <sys/param.h> #include <sys/time.h> #include <sys/conf.h> #include <sys/vnode.h> int vcount(struct vnode *vp); int count_dev(dev_t dev); DESCRIPTION
vcount() is used to get the number of references to a particular device. It allows for the fact that multiple vnodes may reference the same device. count_dev() does the same thing as vcount(), but takes a dev_t rather than a struct vnode pointer as an argument. RETURN VALUES
vcount() and count_dev() both return the number of references to the device. SEE ALSO
VFS(9), vnode(9) AUTHORS
This manual page was written by Andrew Stevenson. BSD
February 6, 2001 BSD

Check Out this Related Man Page

VOP_LINK(9)						   BSD Kernel Developer's Manual					       VOP_LINK(9)

NAME
VOP_LINK -- create a new name for a file SYNOPSIS
#include <sys/param.h> #include <sys/vnode.h> int VOP_LINK(struct vnode *dvp, struct vnode *vp, struct componentname *cnp); DESCRIPTION
This links a new name in the specified directory to an existing file. Its arguments are: dvp The vnode of the directory. vp The vnode of the file to be linked. cnp Pathname information about the file. The pathname info should not be released on exit because it is done by the caller. The directory and file vnodes should not be released on exit. LOCKS
VOP_LINK() expects the directory and file vnodes to be locked on entry and will leave the vnodes locked on return. RETURN VALUES
Zero is returned if the file was linked successfully, otherwise an error is returned. ERRORS
[EMLINK] The file has too many links. [EPERM] The file is immutable. [EXDEV] A hard link is not possible between different file systems. SEE ALSO
vn_lock(9), vnode(9) AUTHORS
This manual page was originally written by Doug Rabson. BSD
July 24, 1996 BSD
Man Page

7 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Working with individual blocks of text using awk

Hi, I am working with CVS log data and have some data as follows. RCS file: /cvsroot/eclipse/org.eclipse.debug.core/core/org/eclipse/debug/core/IBreakpointListener.java,v head: 1.14 branch: locks: strict access list: keyword substitution: o total revisions: 15; selected... (3 Replies)
Discussion started by: sandeepk1611
3 Replies

2. Shell Programming and Scripting

Making case insensitive in awk

here is a statement awk '/CREATE PROCEDURE/,/elimiter/' "$file1" > onlyproc1.sql which mean cut from create procedure to Delimiter or delimiter and paste it in onlyproc1.sql... my query is how to make this case insensitive.. that is i want the above code to work whther it is Delimiter or... (26 Replies)
Discussion started by: vivek d r
26 Replies

3. UNIX for Dummies Questions & Answers

Confused over results using "tee" in piped command

First post here, so hopefully all guidelines are followed, and thanks in advance for any replies. I'm working on a shell script(BASH) that processes a csv file and performs various tasks with the data. All is well, except I want to use 'tee' to send output from 'wc' to a file as well as pipe it... (4 Replies)
Discussion started by: jazzmusic
4 Replies

4. AIX

Script Checking LVM Mirror not Working

Hi, I need to know who can I create an script in order to check server mirror in AIX. I got this script !/usr/bin/ksh # # Check if a VG is mirrored. # # lsattr -El <lvname> -a strictness -a copies # If copies=2 and scrictness=y, then VG is mirrored # # LVs are retrieved via 'lsvg -l... (5 Replies)
Discussion started by: fede_mont
5 Replies

5. Shell Programming and Scripting

Getting awk Output as number instead of String

Hi All, I have a file a.txt, content as mentioned below: 22454750 This data in this control file and I have a variable called vCount which contains a number. I need to extract the 22454750 from the above file and compare with the variable vCount. If match fine or else exit. ... (5 Replies)
Discussion started by: Arun Mishra
5 Replies

6. Shell Programming and Scripting

Sh Script whats wrong?

Hi there, i have a problem i have created followning sh files some years ago but now it dosen`t work anymore i never used it a long time. Can anyone find the Error? Its always runs the stop() block and trying to Killing the Server also if i try to start or creat a new one. #!/bin/sh stop()... (6 Replies)
Discussion started by: NewCannon
6 Replies

7. UNIX for Beginners Questions & Answers

Concatenate column values when header is Matching from multiple files

there can be n number of columns but the number of columns and header name will remain same in all 3 files. Files are tab Delimited. a.txt Name 9/1 9/2 X 1 7 y 2 8 z 3 9 a 4 10 b 5 11 c 6 12 b.xt Name 9/1 9/2 X 13 19 y 14 20 z 15 21 a 16 22 b 17 23 c 18 24 c.txt Name 9/1 9/2... (14 Replies)
Discussion started by: Nina2910
14 Replies