diff options
author | marcel <marcel@FreeBSD.org> | 2009-02-20 04:48:40 +0000 |
---|---|---|
committer | marcel <marcel@FreeBSD.org> | 2009-02-20 04:48:40 +0000 |
commit | c0f13aca4f82041b9d69bedf27f4211b3f75d0d9 (patch) | |
tree | 8268bfa14bb04240846607b3f81f7e3c66956a79 /sys/sys/disk.h | |
parent | 06849d431c7d471f1488eb982edef98712a3f262 (diff) | |
download | FreeBSD-src-c0f13aca4f82041b9d69bedf27f4211b3f75d0d9.zip FreeBSD-src-c0f13aca4f82041b9d69bedf27f4211b3f75d0d9.tar.gz |
Provide compatibility symlink for logical partitions:
1. Extend geom_dev by having it create the symlink (i.e. call
make_dev_alias) based on the DIOCGPROVIDERALIAS ioctl.
In this way the functionaility is generic and thus usable
by any geom/provider.
2. Have g_part handle said ioctl through the devalias method,
so that it's under control of the scheme itself. By design
the alias will not be created for newly added partitions.
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 4fe2e09..b645cd3 100644 --- a/sys/sys/disk.h +++ b/sys/sys/disk.h @@ -104,4 +104,10 @@ 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_ */ |