forked from Lainports/freebsd-ports
- Add LICENSE - Remove 'Author' entry from pkg-descr - Install manpage by the native Makefile - Switch to PLIST_FILES - Give maintainership to submitter PR: ports/174820 Submitted by: Po-Chien Lin <linpc@cs.nctu.edu.tw>
22 lines
531 B
C
22 lines
531 B
C
--- blkdev.c.orig Sun Aug 3 16:07:29 2003
|
|
+++ blkdev.c Sat Mar 5 00:23:40 2005
|
|
@@ -141,6 +141,10 @@
|
|
int code;
|
|
|
|
#ifdef BSD_BLKDEV
|
|
+ struct partinfo {
|
|
+ struct disklabel *disklab;
|
|
+ struct partition *part;
|
|
+ };
|
|
struct partinfo pinfo;
|
|
#endif
|
|
|
|
@@ -173,7 +177,7 @@
|
|
}
|
|
|
|
#ifdef BSD_BLKDEV
|
|
- if (ioctl(f->fd, DIOCGPART, &pinfo))
|
|
+ if (ioctl(f->fd, DIOCGDINFO, &pinfo))
|
|
{
|
|
fprintf(stderr, "\r%s: ioctl failed, can't get disklabel for `%s': %s\n",
|
|
argvzero, f->name, strerror(errno));
|