Lines Matching refs:statbuf
187 struct stat64 *statbuf, boolean_t *wholedisk) in is_shorthand_path() argument
194 if (*wholedisk || (stat64(path, statbuf) == 0)) in is_shorthand_path()
199 memset(statbuf, 0, sizeof (*statbuf)); in is_shorthand_path()
276 struct stat64 statbuf; in make_leaf_vdev() local
304 if (!wholedisk && (stat64(path, &statbuf) != 0)) { in make_leaf_vdev()
326 &statbuf, &wholedisk); in make_leaf_vdev()
356 if (wholedisk || S_ISBLK(statbuf.st_mode)) { in make_leaf_vdev()
358 } else if (S_ISREG(statbuf.st_mode)) { in make_leaf_vdev()
571 struct stat64 statbuf; in get_replication() local
643 err = fstat64_blk(fd, &statbuf); in get_replication()
646 err = stat64(path, &statbuf); in get_replication()
650 statbuf.st_size == 0 || in get_replication()
651 statbuf.st_size == MAXOFFSET_T) in get_replication()
654 size = statbuf.st_size; in get_replication()
956 struct stat64 statbuf; in make_disks() local
1038 ret = lstat64(udevpath, &statbuf); in make_disks()
1039 if (ret == 0 && S_ISLNK(statbuf.st_mode)) in make_disks()