Home
last modified time | relevance | path

Searched refs:state_file (Results 1 – 5 of 5) sorted by relevance

/illumos-gate/usr/src/cmd/rcm_daemon/common/
H A Drcm_script.c338 if (script_ps_statefd.state_file) { in script_main_init()
551 statefd->state_file = (state_file_t *)mmap(NULL, in open_state_file()
555 if (statefd->state_file == MAP_FAILED) { in open_state_file()
563 if (statefd->state_file->version != version) { in open_state_file()
564 (void) munmap((void *)statefd->state_file, in open_state_file()
566 statefd->state_file = NULL; in open_state_file()
570 statefd->state_file = NULL; in open_state_file()
585 if (statefd->state_file) { in truncate_state_file()
587 statefd->state_file->max_elements; in truncate_state_file()
589 (void) munmap((void *)statefd->state_file, size); in truncate_state_file()
[all …]
H A Drcm_script_impl.h167 typedef struct state_file { struct
191 state_file_t *state_file; argument
/illumos-gate/usr/src/cmd/fs.d/nfs/statd/
H A Dsm_statd.c113 char state_file[MAXPATHLEN+SM_MAXPATHLEN]; in statd_init() local
139 (void) sprintf(state_file, "%s/statmon/state", path_name[i]); in statd_init()
140 if ((fp_tmp = fopen(state_file, "r+")) == NULL) { in statd_init()
141 if ((fp_tmp = fopen(state_file, "w+")) == NULL) { in statd_init()
145 state_file); in statd_init()
148 (void) chmod(state_file, 0644); in statd_init()
153 "statd: %s: file empty\n", state_file); in statd_init()
188 (void) sprintf(state_file, "%s/statmon/state", path_name[i]); in statd_init()
189 if ((fp_tmp = fopen(state_file, "r+")) == NULL) { in statd_init()
190 if ((fp_tmp = fopen(state_file, "w+")) == NULL) { in statd_init()
[all …]
/illumos-gate/usr/src/test/zfs-tests/tests/functional/inheritance/
H A Dinherit_001_pos.ksh313 typeset state_file=$1
317 log_note "Reading state from $state_file"
320 grep "^[^#]" $state_file | {
/illumos-gate/usr/src/cmd/allocate/
H A Dallocate3.c99 struct state_file { struct
118 static int _dev_file_name(struct state_file *, devmap_t *); argument
312 struct state_file sf; in _list_device()
1010 struct state_file sf; in _deallocate_dev()
1160 struct state_file sf; in _allocate_dev()
1560 _dev_file_name(struct state_file *sfp, devmap_t *dm) in _dev_file_name()