diff options
author | lulf <lulf@FreeBSD.org> | 2008-09-07 13:54:57 +0000 |
---|---|---|
committer | lulf <lulf@FreeBSD.org> | 2008-09-07 13:54:57 +0000 |
commit | 8c52b542c0de3a703a273d3ef92e1d9ba8ea23e1 (patch) | |
tree | 16f2ffcdc41f0c11cebb1b3f34481ddf1a5d05cc /sys/sys/disk.h | |
parent | cb1cd5ee09eb37bf756225d7f27b846e17599cf1 (diff) | |
download | FreeBSD-src-8c52b542c0de3a703a273d3ef92e1d9ba8ea23e1.zip FreeBSD-src-8c52b542c0de3a703a273d3ef92e1d9ba8ea23e1.tar.gz |
- Add a new ioctl for getting the provider name of a geom provider.
- Add a routine for looking up a device and checking if it is a valid geom
provider given a partial or full path to its device node.
Reviewed by: phk
Approved by: pjd (mentor)
Diffstat (limited to 'sys/sys/disk.h')
-rw-r--r-- | sys/sys/disk.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/sys/sys/disk.h b/sys/sys/disk.h index 71e775e..4fe2e09 100644 --- a/sys/sys/disk.h +++ b/sys/sys/disk.h @@ -98,4 +98,10 @@ void disk_err(struct bio *bp, const char *what, int blkdone, int nl); * - ident is optional and applications can't relay on its presence. */ +#define DIOCGPROVIDERNAME _IOR('d', 138, char[MAXPATHLEN]) + /*- + * Store the provider name, given a device path, in a buffer. The buffer + * must be at least MAXPATHLEN bytes long. + */ + #endif /* _SYS_DISK_H_ */ |