Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 10 Oct 2001 02:47:59 -0400
From:      The Anarcat <anarcat@anarcat.dyndns.org>
To:        Libh <freebsd-libh@freebsd.org>
Subject:   should label editor look current mnt fs?
Message-ID:  <20011010024759.B1253@shall.anarcat.dyndns.org>

next in thread | raw e-mail | index | archive | help

--CUfgB8w4ZwR/yMy5
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

Hi

I've run into problems when using our current sysinstall to update
mountpoints or create new partitions or disks destinated to other
machines. What I did is that I created the disk, labeled it and
*assigned mount points*. Funny thing, mounting another partition over /.

Anyways, I wondered why sysinstall let me do such a stupid thing.

I think the label editor should not let this happen. :) And in doing, it
should tell the user where its disks are mounted, if they are. So
instead of having:

#x  ad0s2e    : 7884688            8089487        FFS <none> x##

you would have:

#x  ad0s2e    : 7884688            8089487        FFS /tmp   x##

I would like that. :)

I think this would involve connecting getmntinfo(3) to the libh API.=20

Does this belong to libhdisk?

for those who care, here is sample tv output of labeledit:

#x  Available partitio                                   x##########
#x  ad1s1f    : 424647     666599     N ffs   <none>     x##########
#x  ad0       : 63/60030432 free                         x##########
#x  -         : 0          62         - unused           x##########
#x  ad0s1     : 63         7167887    - fat32 <none>     x##########
#x  ad0s2     : 7167888    60030431   - fbsd  (complete) x##########
#x  ad0s2a    : 7167888    7372687    N ffs   <none>     x##########
#x  ad0s2b    : 7372688    7884687    - swap  swap       x##########

Yes, the word "partitions" is truncated, I ignore why.

A.

--CUfgB8w4ZwR/yMy5
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (FreeBSD)
Comment: For info see http://www.gnupg.org

iEYEARECAAYFAjvD7x4ACgkQttcWHAnWiGdiqgCfTtYzfgUGJ9AJeByoFH5VYk33
/OgAn0ELT5VmO0nkXrspeK8WCDwMWc9g
=kouM
-----END PGP SIGNATURE-----

--CUfgB8w4ZwR/yMy5--

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-libh" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20011010024759.B1253>