| Thread overview | ||||||||
|---|---|---|---|---|---|---|---|---|
|
March 02, 2008 Tango FileRoots | ||||
|---|---|---|---|---|
| ||||
I'm interested in knowing why FileRoots.list() uses /etc/mtab for its root folders in linux? To my knowledge Linux only has one root and if anything its sub directories would be considered the roots. I just don't see the point of using mtab, but then again I'm looking at it from how file managers look at the system. | ||||
March 02, 2008 Re: Tango FileRoots | ||||
|---|---|---|---|---|
| ||||
Posted in reply to Jesse Phillips | On Sun, 02 Mar 2008 07:45:46 +0000, Jesse Phillips wrote:
> I'm interested in knowing why FileRoots.list() uses /etc/mtab for its root folders in linux? To my knowledge Linux only has one root and if anything its sub directories would be considered the roots. I just don't see the point of using mtab, but then again I'm looking at it from how file managers look at the system.
BTW, it may sound like I'm angry, but really just confused.
| |||
March 02, 2008 Re: Tango FileRoots | ||||
|---|---|---|---|---|
| ||||
Posted in reply to Jesse Phillips | Jesse Phillips wrote: > I'm interested in knowing why FileRoots.list() uses /etc/mtab for its root folders in linux? To my knowledge Linux only has one root and if anything its sub directories would be considered the roots. I just don't see the point of using mtab, but then again I'm looking at it from how file managers look at the system. The unix root / isn't the most useful thing to ask for, thus mtab is used to show all mounted devices. -- Lars Ivar Igesund blog at http://larsivi.net DSource, #d.tango & #D: larsivi Dancing the Tango | |||
March 02, 2008 Re: Tango FileRoots | ||||
|---|---|---|---|---|
| ||||
Posted in reply to Lars Ivar Igesund | Lars Ivar Igesund Wrote:
> Jesse Phillips wrote:
>
> > I'm interested in knowing why FileRoots.list() uses /etc/mtab for its root folders in linux? To my knowledge Linux only has one root and if anything its sub directories would be considered the roots. I just don't see the point of using mtab, but then again I'm looking at it from how file managers look at the system.
>
> The unix root / isn't the most useful thing to ask for, thus mtab is used to show all mounted devices.
>
> --
> Lars Ivar Igesund
> blog at http://larsivi.net
> DSource, #d.tango & #D: larsivi
> Dancing the Tango
ftab mounts the original devices and empowers them
mtab looks after the devices added later ie plugging in the usb stick or something like that
is the file used in that sort of context?
| |||
March 03, 2008 Re: Tango FileRoots | ||||
|---|---|---|---|---|
| ||||
Posted in reply to Ty Tower | On Sun, 02 Mar 2008 17:02:33 -0500, Ty Tower wrote:
> Lars Ivar Igesund Wrote:
>
>> Jesse Phillips wrote:
>>
>> > I'm interested in knowing why FileRoots.list() uses /etc/mtab for its root folders in linux? To my knowledge Linux only has one root and if anything its sub directories would be considered the roots. I just don't see the point of using mtab, but then again I'm looking at it from how file managers look at the system.
>>
>> The unix root / isn't the most useful thing to ask for, thus mtab is used to show all mounted devices.
>>
>> --
>> Lars Ivar Igesund
>> blog at http://larsivi.net
>> DSource, #d.tango & #D: larsivi
>> Dancing the Tango
>
> ftab mounts the original devices and empowers them mtab looks after the devices added later ie plugging in the usb stick or something like that
>
> is the file used in that sort of context?
it can't, it reads the file when called, so it will only get already mounted devices, a file change listener of some sort would have to be created to track later mounted devices.
For me must of the mounted items in mtab are useless, but it can be easily version'd out as needed.
| |||
March 15, 2008 Re: Tango FileRoots | ||||
|---|---|---|---|---|
| ||||
Posted in reply to Jesse Phillips | Jesse, Would you mind jumping on irc to discuss this one, please? There's an easy way to hookup irc noted at the bottom of this page: http://dsource.org/projects/tango/wiki/Contact Thanks; "Jesse Phillips" <jessekphillips@gmail.com> wrote in message news:fqfhfj$ed9$2@digitalmars.com... > On Sun, 02 Mar 2008 17:02:33 -0500, Ty Tower wrote: > >> Lars Ivar Igesund Wrote: >> >>> Jesse Phillips wrote: >>> >>> > I'm interested in knowing why FileRoots.list() uses /etc/mtab for its root folders in linux? To my knowledge Linux only has one root and if anything its sub directories would be considered the roots. I just don't see the point of using mtab, but then again I'm looking at it from how file managers look at the system. >>> >>> The unix root / isn't the most useful thing to ask for, thus mtab is used to show all mounted devices. >>> >>> -- >>> Lars Ivar Igesund >>> blog at http://larsivi.net >>> DSource, #d.tango & #D: larsivi >>> Dancing the Tango >> >> ftab mounts the original devices and empowers them mtab looks after the devices added later ie plugging in the usb stick or something like that >> >> is the file used in that sort of context? > > it can't, it reads the file when called, so it will only get already mounted devices, a file change listener of some sort would have to be created to track later mounted devices. > > For me must of the mounted items in mtab are useless, but it can be easily version'd out as needed. | |||
Copyright © 1999-2021 by the D Language Foundation
Permalink
Reply