Sponsored Content
Operating Systems Solaris Major and Minor number of Virtual File System Post 302668623 by subhash_kumar on Monday 9th of July 2012 04:37:10 PM
Old 07-09-2012
Quote:
Originally Posted by nitj
I also think same.. but what are the device numbers mentioned pfiles for the inodes residing in virtual file system?

EX.

Code:
 
pfiles output:

255: S_IFREG mode:0666 dev:297,1 ino:65539 uid:0 gid:0 size:0
      O_RDWR|O_LARGEFILE FD_CLOEXEC
      /system/contract/process/template

bash-3.2# df -h /system/contract/process/template
Filesystem             size   used  avail capacity  Mounted on
ctfs                     0K     0K     0K     0%    /system/contract
bash-3.2#

---------- Post updated at 02:07 AM ---------- Previous update was at 02:05 AM ----------

Quote:
Originally Posted by nitj
Hi friends, Please let me know if there is any way to find out Major and Minor numbers of virtual file system like below:

Code:
/devices                 0K     0K     0K     0%    /devices
ctfs                     0K     0K     0K     0%    /system/contract
proc                     0K     0K     0K     0%    /proc
mnttab                   0K     0K     0K     0%    /etc/mnttab
swap                   661M  1004K   660M     1%    /etc/svc/volatile
objfs                    0K     0K     0K     0%    /system/object
sharefs                  0K     0K     0K     0%    /etc/dfs/sharetab
fd                       0K     0K     0K     0%    /dev/fd
swap                   660M   116K   660M     1%    /tmp
swap                   660M    36K   660M     1%    /var/run

Hi,
Minor and major number is only for physical device not for any Virtual device and file.Thanks
 

9 More Discussions You Might Find Interesting

1. Programming

Device Major/Minor numbers

To further my fledgling knowledge of C, I am re-writing some of the Unix command set. My current command is an ls-style command. All works well, except for device files. How do I get the major/minor numbers for the dev files? I see from the stat struct there are st_rdev and st_dev members. Do... (1 Reply)
Discussion started by: zazzybob
1 Replies

2. Solaris

major & minor number

Hi Can anyone tell me what is major number and minor number in the mknod command. Also what these numbers mean. I have gone through the man pages but still I couldn't understand. Regards (3 Replies)
Discussion started by: RajaRC
3 Replies

3. Shell Programming and Scripting

sort major.minor.release_build_x

would like to order this input based on major.minor.release AND build number Label abc_def_0.0.3_build_999 2008/08/01 'Created by me.' Label abc_def_0.0.9_build_1000 2008/08/01 'Created by me.' Label abc_def_9.0.9_build_10001 2008/08/01 'Created by me.' Label abc_def_10.9.100_build_2... (4 Replies)
Discussion started by: gurpal2000
4 Replies

4. Solaris

Help with Major and minor number

Hi Does anyone know what the major and minor numbers are in Solaris? (2 Replies)
Discussion started by: wisdom
2 Replies

5. AIX

how do I change major-minor numbers of disk devices

Good evening ... does anyone of you know how to change major/minor numbers of disk devices ? I had to migrate from raid1 to raid5 and this messed up my ASM cluster - I know which devices should have which IDs to match the content - but I have no idea how to change it. Any help would be... (2 Replies)
Discussion started by: zxmaus
2 Replies

6. AIX

Difference between Major and Minor in AIX

Difference between Major and Minor in AIX (5 Replies)
Discussion started by: AIXlearner
5 Replies

7. Programming

which head file for major and minor function?

#include <sys/types.h> #include <sys/stat.h> #include <sys/termios.h> #include <stdio.h> #include <stdlib.h> #include <stddef.h> #include <string.h> #include <unistd.h> #include <signal.h> #include <sys/mkdev.h> int main(int argc, char *argv) { int i; struct stat buf; ... (4 Replies)
Discussion started by: konvalo
4 Replies

8. Shell Programming and Scripting

How to filter out major and minor?

Hi, I have line like this : proj_name/module/trunk/module_1_0 where the first "1" refers to major version and second "0" refers to minor version. any AWK or command like that so that I can filter out the major and minor ? like major= command | input line minor= command |... (4 Replies)
Discussion started by: bhaskar_m
4 Replies

9. Shell Programming and Scripting

Filtering my major and minor values

I want to remove all rows with a minor repeating count less than 30% compared to the major repeating count from my table. The values of a col(starting col 2) can assume is A,T,G,C and N. Each row has at least 2 values and at most 4 repeating values(out of ATGC). N is considered a missing value... (12 Replies)
Discussion started by: newbie83
12 Replies
ct_dev_tmpl_set_aset(3CONTRACT) 		       Contract Management Library Functions			   ct_dev_tmpl_set_aset(3CONTRACT)

NAME
ct_dev_tmpl_set_aset, ct_dev_tmpl_get_aset, ct_dev_tmpl_set_minor, ct_dev_tmpl_get_minor, ct_dev_tmpl_set_noneg, ct_dev_tmpl_clear_noneg, ct_dev_tmpl_get_noneg - device contract template functions SYNOPSIS
cc [ flag... ] file... -D_LARGEFILE64_SOURCE -lcontract [ library... ] #include <libcontract.h> #include <sys/contract/device.h> int ct_dev_tmpl_set_aset(int fd, uint_t aset); int ct_dev_tmpl_get_aset(int fd, uint_t *asetp); int ct_dev_tmpl_set_minor(int fd, char *minor); int ct_dev_tmpl_get_minor(int fd, char *buf, size_t *buflenp); int ct_dev_tmpl_set_noneg(int fd); int ct_dev_tmpl_clear_noneg(int fd); int ct_dev_tmpl_get_noneg(int fd, uint_t *nonegp); PARAMETERS
aset a bitset of one or more of device states asetp a pointer to a variable into which the current A-set is to be returned buf a buffer into which the minor path is to be returned buflenp a pointer to variable of type size_t in which the size of the buffer buf is passed in. If the buffer is too small the size of the buffer needed for a successful call is passed back to the caller. fd a file descriptor from an open of the device contract template file in the contract filesystem (ctfs) minor the devfs path (the /devices path without the "/devices" prefix) of a minor which is to be the subject of a contract nonegp a pointer to a uint_t variable for receiving the current setting of the "nonnegotiable" term in the template DESCRIPTION
These functions read and write device contract terms and operate on device contract template file descriptors obtained from the contract(4) filesystem (ctfs). The ct_dev_tmpl_set_aset() and ct_dev_tmpl_get_aset() functions write and read the "acceptable states" set (or A-set for short). This is the set of device states guaranteed by the contract. Any departure from these states will result in the breaking of the contract and a delivery of a critical contract event to the contract holder. The A-set value is a bitset of one or more of the following device states: CT_DEV_EV_ONLINE, CT_DEV_EV_DEGRADED, and CT_DEV_EV_OFFLINE. The ct_dev_tmpl_set_minor() and ct_dev_tmpl_get_minor() functions write and read the minor term (the device resource that is to be the sub- ject of the contract.) The value is a devfs path to a device minor node (minus the "/devices" prefix). For the ct_dev_tmpl_get_minor() function, a buffer at least PATH_MAX in size must be passed in. If the buffer is smaller than PATH_MAX, then the minimum size of the buffer required (PATH_MAX) for this function is passed back to the caller via the buflenp argument. The ct_dev_tmpl_set_noneg() and ct_dev_tmpl_get_noneg() functions write and read the nonnegotiable term. If this term is set, synchronous negotiation events are automatically NACKed on behalf of the contract holder. For ct_dev_tmpl_get_noneg(), the variable pointed to by nonegp is set to 1 if the "noneg" term is set or to 0 otherwise. The ct_dev_tmpl_clear_noneg() term clears the nonnegotiable term from a template. RETURN VALUES
Upon successful completion, these functions return 0. Otherwise, they return a non-zero error value. ERRORS
The ct_dev_tmpl_set_aset() function will fail if: EINVAL A template file descriptor or A-set is invalid The ct_dev_tmpl_set_minor() function will fail if: EINVAL One or more arguments is invalid. ENXIO The minor named by minor path does not exist. The ct_dev_tmpl_set_noneg() function will fail if: EPERM A process lacks sufficient privilege to NACK a device state change. The ct_dev_tmpl_get_aset() and ct_dev_tmpl_get_minor() functions will fail if: EINVAL One or more arguments is invalid. ENOENT The requested term is not set. The ct_dev_tmpl_get_noneg() function will fail if: EINVAL One or more arguments is invalid. The ct_dev_tmpl_get_minor() function will fail if: EOVEFLOW The supplied buffer is too small. ATTRIBUTES
See attributes(5) for descriptions of the following attributes: +-----------------------------+-----------------------------+ | ATTRIBUTE TYPE | ATTRIBUTE VALUE | +-----------------------------+-----------------------------+ |Interface Stability |Committed | +-----------------------------+-----------------------------+ |MT-Level |Safe | +-----------------------------+-----------------------------+ SEE ALSO
libcontract(3LIB), contract(4), devices(4), attributes(5), lfcompile(5) SunOS 5.11 9 Aug 2007 ct_dev_tmpl_set_aset(3CONTRACT)
All times are GMT -4. The time now is 08:46 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy