Re: Mehrfach mounten abschalten

From: Oliver Fromme <olli(at)lurza.secnetix.de>
Date: Fri, 24 Mar 2006 17:26:32 +0100 (CET)

Rocco Rutte <pdmef(at)gmx.net> wrote:
> Oliver Fromme <olli(at)lurza.secnetix.de>:
> > Rocco Rutte <pdmef(at)gmx.net> wrote:
> > > "mount -v" liefert das gleiche wie "mount".
>
> > Dann hast Du kein aktuelles FreeBSD 6.
>
> Hmm. Das letzte Update bei 6-STABLE war von diesem Mittwoch. Ich habe im
> Source von mount geguckt und dort statfs(2) gesehen. Ein kleines Tool
> geschrieben und tatsächlich: statfs(2) liefert immer 0 in f_fsid von
> struct statfs, weshalb es mount dann auch bei -v nicht ausgibt.
>
> Bei einem grep über den Source sieht f_fsid wichtig aus, also kann es
> nicht für alle Filesystems 0 sein. Und siehe da: als UID==0 bekomme ich
> IDs und bei !=0 nicht. Wenn man das weiss, dann liefert auch "mount -v"
> die IDs.

Sieh an, das wußte ich auch noch nicht. :-)

Hmm, ist mir eigentlich so ad-hoc unklar, warum nur root
die FS-IDs lesen können soll. Naja, sei's drum, es wird
schon einen Grund geben.

Gruß
   Olli

-- 
Oliver Fromme,  secnetix GmbH & Co. KG, Marktplatz 29, 85567 Grafing
Dienstleistungen mit Schwerpunkt FreeBSD: http://www.secnetix.de/bsd
Any opinions expressed in this message may be personal to the author
and may not necessarily reflect the opinions of secnetix in any way.
With Perl you can manipulate text, interact with programs, talk over
networks, drive Web pages, perform arbitrary precision arithmetic,
and write programs that look like Snoopy swearing.
To Unsubscribe: send mail to majordomo(at)de.FreeBSD.org
with "unsubscribe de-bsd-questions" in the body of the message
Received on Fri 24 Mar 2006 - 17:28:44 CET

search this site