Sponsored Content
Operating Systems Solaris Major and Minor number of Virtual File System Post 302668127 by nitj on Sunday 8th of July 2012 06:38:02 PM
Old 07-08-2012
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#

 

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_pr_tmpl_set_transfer(3CONTRACT)		       Contract Management Library Functions			ct_pr_tmpl_set_transfer(3CONTRACT)

NAME
ct_pr_tmpl_set_transfer, ct_pr_tmpl_set_fatal, ct_pr_tmpl_set_param, ct_pr_tmpl_set_svc_fmri, ct_pr_tmpl_set_svc_aux, ct_pr_tmpl_get_trans- fer, ct_pr_tmpl_get_fatal, ct_pr_tmpl_get_param, ct_pr_tmpl_get_svc_fmri, ct_pr_tmpl_get_svc_aux - process contract template functions SYNOPSIS
cc [ flag... ] file... -D_LARGEFILE64_SOURCE -lcontract [ library... ] #include <libcontract.h> #include <sys/contract/process.h> int ct_pr_tmpl_set_transfer(int fd, ctid_t ctid); int ct_pr_tmpl_set_fatal(int fd, uint_t events); int ct_pr_tmpl_set_param(int fd, uint_t params); int ct_pr_tmpl_set_svc_fmri(int fd, const char *fmri); int ct_pr_tmpl_set_svc_aux(int fd, const char *aux); int ct_pr_tmpl_get_transfer(int fd, ctid_t *ctidp); int ct_pr_tmpl_get_fatal(int fd, uint_t *eventsp); int ct_pr_tmpl_get_param(int fd, uint_t *paramsp); int ct_pr_tmpl_get_svc_fmri(int fd, char *fmri, size_t size); int ct_pr_tmpl_get_svc_aux(int fd, char *aux, size_t size); DESCRIPTION
These functions read and write process contract terms and operate on process contract template file descriptors obtained from the con- tract(4) file system. The ct_pr_tmpl_set_transfer() and ct_pr_tmpl_get_transfer() functions write and read the transfer contract term. The value is the ID of an empty regent process contract owned by the caller whose inherited contracts are to be transferred to a newly created contract. The ct_pr_tmpl_set_fatal() and ct_pr_tmpl_get_fatal() functions write and read the fatal event set term. The value is a collection of bits as described in process(4). The ct_pr_tmpl_set_param() and ct_pr_tmpl_get_param() functions write and read the parameter set term. The value is a collection of bits as described in process(4). The ct_pr_tmpl_set_svc_fmri() and ct_pr_tmpl_get_svc_fmri() functions write and read the service FMRI value of a process contract tem- plate. The ct_pr_tmpl_set_svc_fmri() function requires the caller to have the {PRIV_CONTRACT_IDENTITY} privilege in its effective set. The ct_pr_tmpl_set_svc_aux() and ct_pr_tmpl_get_svc_aux() functions write and read the creator's auxiliary value of a process contract tem- plate. RETURN VALUES
Upon successful completion, ct_pr_tmpl_set_transfer(), ct_pr_tmpl_set_fatal(), ct_pr_tmpl_set_param(), ct_pr_tmpl_set_svc_fmri(), ct_pr_tmpl_set_svc_aux(), ct_pr_tmpl_get_transfer(), ct_pr_tmpl_get_fatal(), and ct_pr_tmpl_get_param() return 0. Otherwise, they return a non-zero error value. Upon successful completion, ct_pr_tmpl_get_svc_fmri() and ct_pr_tmpl_get_svc_aux() return the size required to store the value, which is the same value return by strcpy(3C) + 1. Insufficient buffer size can be checked by: if (ct_pr_tmpl_get_svc_fmri(fd, fmri, size) > size) /* buffer is too small */ Otherwise, ct_pr_tmpl_get_svc_fmri() and ct_pr_tmpl_get_svc_aux() return -1 and set errno to indicate the error. ERRORS
The ct_pr_tmpl_set_param(), ct_pr_tmpl_set_svc_fmri(), ct_pr_tmpl_set_svc_aux(), ct_pr_tmpl_get_svc_fmri() and ct_pr_tmpl_get_svc_aux() functions will fail if: EINVAL An invalid parameter was specified. The ct_pr_tmpl_set_fatal() function will fail if: EINVAL An invalid event was specified. The ct_pr_tmpl_set_transfer() function will fail if: ESRCH The ID specified by ctid does not correspond to a process contract. EACCES The ID specified by ctid does not correspond to a process contract owned by the calling process. ENOTEMPTY The ID specified by ctid does not correspond to an empty process contract. The ct_pr_tmpl_set_svc_fmri() function will fail if: EPERM The calling process does not have {PRIV_CONTRACT_IDENTITY} in its effective set. EXAMPLES
Example 1 Create and activate a process contract template. The following example opens a new template, makes hardware errors and signals fatal events, makes hardware errors critical events, and activates the template. It then forks a process in the new contract using the requested terms. #include <libcontract.h> #include <fcntl.h> #include <unistd.h> ... int fd; fd = open("/system/contract/process/template", O_RDWR); (void) ct_pr_tmpl_set_fatal(fd, CT_PR_EV_HWERR|CT_PR_EV_SIGNAL); (void) ct_tmpl_set_critical(fd, CT_PR_EV_HWERR); (void) ct_tmpl_activate(fd); close(fd); if (fork()) { /* parent - owns new process contract */ ... } else { /* child - in new process contract */ ... } ... Example 2 Clear the process contract template. The following example opens the template file and requests that the active template be cleared. #include <libcontract.h> #include <fcntl.h> ... int fd; fd = open("/system/contract/process/template", O_RDWR); (void) ct_tmpl_clear(fd); close(fd); ... ATTRIBUTES
See attributes(5) for descriptions of the following attributes: +-----------------------------+-----------------------------+ | ATTRIBUTE TYPE | ATTRIBUTE VALUE | +-----------------------------+-----------------------------+ |Interface Stability |Committed | +-----------------------------+-----------------------------+ |MT-Level |Safe | +-----------------------------+-----------------------------+ SEE ALSO
libcontract(3LIB), strcpy(3C), contract(4), process(4), attributes(5), lfcompile(5) SunOS 5.11 25 Feb 2008 ct_pr_tmpl_set_transfer(3CONTRACT)
All times are GMT -4. The time now is 05:14 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy