Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 10 Jul 2006 19:23:29 -0600
From:      Scott Long <scottl@samsco.org>
To:        Maxim Sobolev <sobomax@FreeBSD.org>
Cc:        Craig Rodrigues <rodrigc@crodrigues.org>, freebsd-current@FreeBSD.org, freebsd-arch@FreeBSD.org
Subject:   Re: [RFC] mount can figure out fstype automatically
Message-ID:  <44B2FD91.4010503@samsco.org>
In-Reply-To: <44B2F94A.6020309@FreeBSD.org>
References:  <20060708152801.GA3671@crodrigues.org>	<44AFD7DF.8090002@errno.com>	<20060708161719.GB3871@crodrigues.org>	<20060710223845.GA47557@dragon.NUXI.org> <44B2F326.1090203@samsco.org> <44B2F94A.6020309@FreeBSD.org>

next in thread | previous in thread | raw e-mail | index | archive | help
Maxim Sobolev wrote:

> Scott Long wrote:
> 
>> David O'Brien wrote:
>>
>>> On Sat, Jul 08, 2006 at 12:17:19PM -0400, Craig Rodrigues wrote:
>>>
>>>> I was thinking of doing something like that.  You can basically
>>>> get the same info by doing something like:
>>>> file - < /dev/ad0s1e
>>>> /dev/stdin: Unix Fast File system (little-endian)
>>>> file - < /dev/ad0s4
>>>> /dev/stdin: SGI XFS filesystem
>>>>
>>>> I leaned away from this approach in mount(8) because:
>>>> - I didn't want to tie mount(8) to file(1)
>>>
>>>
>>>
>>> Why not?  We have libmagic for purposes like this.
>>>
>>
>> This is an interesting idea.  However, it has the potential to
>> add a dependency on /usr to the early boot environment.  Maybe it
>> could be done via rtld?
> 
> 
> Well, we have dynamic /sbin now, so that it's only the matter of moving 
> libmagic into /lib.
> 
> -Maxim

libmagic depends on libz.  Let's not go down the path of populating
/lib with every convenience under the sun.

Scott




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