[Mono-list] Simple code - differences in output between mono &
.Net
Tim Haynes
thaynes@openlinksw.com (Tim Haynes)
Wed, 03 Mar 2004 17:05:46 +0000
David Sheldon <dave-monolist@earth.li> writes:
> On Wed, Mar 03, 2004 at 10:11:28AM -0500, Nick Berardi wrote:
>> I guess logical drives in Linux is just the root. But I would think that
>> they would include the mount points in here? Don't you think? Because
>> basically that is all that a Windows Drive is. A mounted partition.
>>
>> Anybody on the list disagree?
>
> I disagree. The call is get*Logical*Drives. Linux only has a single
> logical drive, though it is made up of several physical drives mounted
> into it. If you enumerate /, /cdrom, /floppy, /mnt/moredisk,
> /mnt/moredisk/someNFSserver then you will end up with applications double
> counting files and generally recursing over more then they need to in
> order to find a file.
Indeed. What is the definition of a propspective "mountpoint" anyway?
Things in /mnt? Things like /{floppy,cdrom}? Things declared with `noauto'
in /etc/fstab? What about LVM mountpoints? Or things that *are* actually
mounted but that *aren't* generally transient in nature - /, /usr, /var,
/home, whatever else people tend to peel-off? There's a case to be made for
most of the above, I think - but I would only go with / as the most
portable, myself.
~Tim
--
Product Development Consultant
OpenLink Software
Tel: +44 (0) 20 8681 7701
Web: <http://www.openlinksw.com>
Universal Data Access & Data Integration Technology Providers