Date: Sat, 03 Feb 2001 19:20:21 -0800 From: Dima Dorfman <dima@unixfreak.org> To: John Baldwin <jhb@FreeBSD.org> Cc: Makoto MATSUSHITA <matusita@ics.es.osaka-u.ac.jp>, current@FreeBSD.org, phk@FreeBSD.org Subject: Re: doFS.sh should obey MDDEVICE if available Message-ID: <20010204032026.E43153E02@bazooka.unixfreak.org> In-Reply-To: Message from John Baldwin <jhb@FreeBSD.org> of "Sat, 03 Feb 2001 17:04:29 PST." <XFMail.010203170429.jhb@FreeBSD.org>
next in thread | previous in thread | raw e-mail | index | archive | help
> Also, I think that this isn't the right fix to a bigger problem. > Instead, it shouldn't be hard to get a list of configured devices > out of mdconfig via an ioctl on /dev/mdctl. This would be the right > fix, as it would fix the general case problem you describe, not just > one instance of it. mdconfig wont' be able to tell you what file it > is attached to by filename, but it should be able to ask /dev/mdctl > for a list of devices and report at least the type of each device > (swap, file, etc.). I think I can do this, possibly with a little help. md(4) keeps a list of md_s structures. From these, I think you can fill in the majority (if not all) of the fields in an md_ioctl structure. I tried this, and I can successfully return one almost-filled md_ioctl structure. If someone can suggest a method for returning an arbitrary number of md_ioctl's (a list), I think I may be able to implement this. Any pointers? Thanks Dima Dorfman dima@unixfreak.org To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20010204032026.E43153E02>