From 8fa709769a72b5c4b2e95bf92bb0b53836b4881a Mon Sep 17 00:00:00 2001 From: marcel Date: Wed, 8 Jul 2009 05:56:14 +0000 Subject: Revert revisions 188839 and 188868. Use of the ioctl in geom_dev.c is invalid because the ioctl happens without prior open. The ioctl got introduced to provide backward compatibility for extended partitions, but it ended up not being used because it didn't work as expected. Since there are no consumers of the ioctl and the implementation is broken, the best fix is to remove the code entirely. Spotted by: phk Approved by: re (kensmith) --- sys/sys/disk.h | 6 ------ 1 file changed, 6 deletions(-) (limited to 'sys/sys/disk.h') diff --git a/sys/sys/disk.h b/sys/sys/disk.h index b645cd3..4fe2e09 100644 --- a/sys/sys/disk.h +++ b/sys/sys/disk.h @@ -104,10 +104,4 @@ void disk_err(struct bio *bp, const char *what, int blkdone, int nl); * must be at least MAXPATHLEN bytes long. */ -#define DIOCGPROVIDERALIAS _IOR('d', 139, char[MAXPATHLEN]) - /*- - * Store the provider alias, if present, in a buffer. The buffer must - * be at least MAXPATHLEN bytes long. - */ - #endif /* _SYS_DISK_H_ */ -- cgit v1.1