emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: testing for a remote file to include file on a Windows mapped drive


From: Michael Albinus
Subject: Re: testing for a remote file to include file on a Windows mapped drive
Date: Mon, 21 Apr 2008 11:11:13 +0200
User-agent: Gnus/5.1008 (Gnus v5.10.8) Emacs/21.3 (hpux)

Andreas Schwab <address@hidden> writes:

> Michael Albinus <address@hidden> writes:
>
>> * file-mounted-p (as working name) returns t, if a file looks like an
>>   ordinary file from the operating system's point of view, but its
>>   physical location is on another machine. Examples are nfs, smbfs or
>>   sshfs mounts under GNU/Linux, or network shares under W32.
>
> What should file-mounted-p return on a diskless client?

`t', as per definition. I'm not too happy with that; because there is
also the case of CDs or USB sticks, where the access might be slow,
though these devices are not mounted in the sense of file-mounted-p.

I would prefer a function which returns "fast" or "slow". Since we
cannot know it without testing (what shall be avoided), we have only
such "second hand indications".

One could consider additional regexps, which tell "when the mount
point matches this regexp, return `t' for file-mounted-p", and the
contrary case with the other regexp. But this would make the handling
more complex.

> Andreas.

Best regards, Michael.





reply via email to

[Prev in Thread] Current Thread [Next in Thread]