Home
last modified time | relevance | path

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

/illumos-gate/usr/src/cmd/fs.d/pcfs/fstyp/
H A Dfstyp.c215 struct dk_minfo dkminfo; in read_bootsec() local
219 if (ioctl(h->fd, DKIOCGMEDIAINFO, &dkminfo) != -1) { in read_bootsec()
220 if (dkminfo.dki_lbsize != 0) in read_bootsec()
221 size = dkminfo.dki_lbsize; in read_bootsec()
/illumos-gate/usr/src/cmd/fs.d/pcfs/common/
H A Dpcfs_common.c81 struct dk_minfo dkminfo; in get_media_sector_size() local
83 if (ioctl(fd, DKIOCGMEDIAINFO, &dkminfo) != -1) { in get_media_sector_size()
84 *sizep = dkminfo.dki_lbsize; in get_media_sector_size()
/illumos-gate/usr/src/cmd/fs.d/udfs/mkfs/
H A Dmkfs.c1338 struct dk_minfo dkminfo; in get_bsize() local
1352 if (ioctl(fso, DKIOCGMEDIAINFO, &dkminfo) != -1) { in get_bsize()
1353 if (dkminfo.dki_lbsize != 0 && in get_bsize()
1354 POWEROF2(dkminfo.dki_lbsize / DEV_BSIZE) && in get_bsize()
1355 dkminfo.dki_lbsize != DEV_BSIZE) { in get_bsize()
1359 dkminfo.dki_lbsize); in get_bsize()
/illumos-gate/usr/src/cmd/fs.d/
H A Dfsck.c222 struct dk_minfo dkminfo; in main() local
477 DKIOCGMEDIAINFO, &dkminfo) != in main()
479 lbs = dkminfo.dki_lbsize; in main()
/illumos-gate/usr/src/cmd/fs.d/ufs/mkfs/
H A Dmkfs.c636 struct dk_minfo dkminfo; in main() local
1494 if (ioctl(fso, DKIOCGMEDIAINFO, &dkminfo) != -1) { in main()
1495 if (dkminfo.dki_lbsize != 0 && in main()
1496 POWEROF2(dkminfo.dki_lbsize / DEV_BSIZE) && in main()
1497 dkminfo.dki_lbsize != DEV_BSIZE) { in main()
1500 "supported by ufs!\n"), dkminfo.dki_lbsize); in main()