|
|
|
|
|
|
| Author |
Message |
Andrea Campi *nix forums beginner
Joined: 21 Jul 2004
Posts: 4
|
Posted: Wed Jun 28, 2006 10:06 pm Post subject:
Re: Accessing disks via their serial numbers.
|
|
|
On Tue, Jun 27, 2006 at 04:38:23PM -0400, Garance A Drosehn wrote:
| Quote: | This strikes me as a worthwhile idea. Leave the device-
entries in /dev as they are now, but then create some
sub-directories which would hold the more arbitrary (or
"non-sanitized") names.
/dev/info/disk/serial-num
or /dev/info/geom/whatever
etc. That way there's only one new entry in /dev, and
people could just de-permit that directory (or turn the
feature off) if they didn't want or need to have that
extra info available.
|
Picking a semi-random message to reply to, I seem to recall Solaris
has a separate /devices filesystem for this: all entries are dynamic,
so the filesystem is strictly readonly from a userland point of view.
In our case, we would have quite a lot of overlap with devinfo, but it
could still be something to keep in mind.
Andrea
--
Loose bits sink chips.
_______________________________________________
freebsd-arch@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-arch
To unsubscribe, send any mail to "freebsd-arch-unsubscribe@freebsd.org" |
|
| Back to top |
|
 |
Pawel Jakub Dawidek *nix forums addict
Joined: 24 Jun 2003
Posts: 92
|
Posted: Fri Jul 07, 2006 8:20 am Post subject:
Re: Accessing disks via their serial numbers.
|
|
|
On Wed, Jun 28, 2006 at 10:36:07AM -0400, John Baldwin wrote:
| Quote: | On Tuesday 27 June 2006 16:11, Pawel Jakub Dawidek wrote:
On Tue, Jun 27, 2006 at 06:43:19PM +0000, Poul-Henning Kamp wrote:
I wrote this twice already in this thread, but let me write it again.
File systems are not the whole world. For example. I've a disk ad0.
I configured gbde(4) on top of it. I create file system on top of
ad0.bde. Now, let's assume I implemented shrinkfs( as you suggested,
how can I shrink gbde(4) provider?
If you want a label you should label it before gbde(4). This is similar to
the fact that you can't retroactively add a gmirror under the gbde slice
either.
|
That's right. And this is how I do it. Unfortunately this is not always
the case. First of all, sysinstall doesn't have support for configuring
things like gbde/gmirror (which of course can be changed) or you may
simply not expect that you will need labels on your disks when you
install the system...
--
Pawel Jakub Dawidek http://www.wheel.pl
pjd@FreeBSD.org http://www.FreeBSD.org
FreeBSD committer Am I Evil? Yes, I Am! |
|
| Back to top |
|
 |
John Baldwin *nix forums Guru Wannabe
Joined: 27 Mar 2002
Posts: 278
|
Posted: Fri Jul 07, 2006 4:57 pm Post subject:
Re: Accessing disks via their serial numbers.
|
|
|
On Friday 07 July 2006 04:20, Pawel Jakub Dawidek wrote:
| Quote: | On Wed, Jun 28, 2006 at 10:36:07AM -0400, John Baldwin wrote:
On Tuesday 27 June 2006 16:11, Pawel Jakub Dawidek wrote:
On Tue, Jun 27, 2006 at 06:43:19PM +0000, Poul-Henning Kamp wrote:
I wrote this twice already in this thread, but let me write it again.
File systems are not the whole world. For example. I've a disk ad0.
I configured gbde(4) on top of it. I create file system on top of
ad0.bde. Now, let's assume I implemented shrinkfs( as you suggested,
how can I shrink gbde(4) provider?
If you want a label you should label it before gbde(4). This is similar
to
the fact that you can't retroactively add a gmirror under the gbde slice
either.
That's right. And this is how I do it. Unfortunately this is not always
the case. First of all, sysinstall doesn't have support for configuring
things like gbde/gmirror (which of course can be changed) or you may
simply not expect that you will need labels on your disks when you
install the system...
|
If you want to label a filesystem that should be part of the filesystem's
metadata. If you want to label a region of the disk it seems sensible that
one has to label it before putting other stuff into it. Either that or the
label's belong in the geom that manages the region you are trying to label
(i.e. geom_mbr would manage labels for mbr slices).
--
John Baldwin
_______________________________________________
freebsd-arch@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-arch
To unsubscribe, send any mail to "freebsd-arch-unsubscribe@freebsd.org" |
|
| Back to top |
|
 |
Google
|
|
| Back to top |
|
 |
|
|
The time now is Fri Nov 21, 2008 4:53 am | All times are GMT
|
|
Mortgage | Personal Loans | Unblock Myspace | Mortgages | Computers 2007
|
|
Copyright © 2004-2005 DeniX Solutions SRL
|
|
|
|
Other DeniX Solutions sites:
Unix/Linux blog |
electronics forum |
medicine forum |
science forum |
|
|
Privacy Policy
|
Powered by phpBB © 2001, 2005 phpBB Group
|
|