[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: testing for a remote file to include file on a Windows mappeddrive
From: |
Eli Zaretskii |
Subject: |
Re: testing for a remote file to include file on a Windows mappeddrive |
Date: |
Sun, 27 Jan 2008 19:28:17 +0200 |
> From: Michael Albinus <address@hidden>
> Cc: address@hidden, address@hidden, address@hidden, address@hidden
> Date: Sun, 27 Jan 2008 12:18:43 +0100
>
> (nth 11 (file-attributes "~/src/emacs/lisp"))
> => 2049
> (nth 11 (file-attributes "~/src/tramp/lisp"))
> => 24
>
> "~/src/emacs" is a link to "/usr/local/src/emacs". The device number
> 2049 is related to device "/", which has the device type "ext2/ext3".
>
> "~/src/tramp" is a link to "/mnt/src/tramp". The device number 24 is
> related to device "/mnt/src", which has the device type "UNKNOWN".
>
> These information (and other ones, if necessary) might be sufficient to
> determine whether a given file is "mounted locally". Implementation
> shall happen in Emacs C core,of course.
Are you saying that files with device number below a certain threshold
are guaranteed to be on a remote mounted volume? If so, what is that
threshold, and is this universal among Posix platforms?
Also, wouldn't file-attributes (which calls `stat' internally) try to
access the mounted volume, and thus be as slow as the file access we
want to avoid? For example, I thought that a call to `stat' would try
to mount automounted volumes, but perhaps I'm confused.
- Re: testing for a remote file to include file on a Windows mappeddrive, (continued)
- Re: testing for a remote file to include file on a Windows mappeddrive, Stefan Monnier, 2008/01/25
- RE: testing for a remote file to include file on a Windows mappeddrive, Drew Adams, 2008/01/26
- Re: testing for a remote file to include file on a Windows mappeddrive, Eli Zaretskii, 2008/01/26
- Re: testing for a remote file to include file on a Windows mappeddrive, Michael Albinus, 2008/01/26
- Re: testing for a remote file to include file on a Windows mappeddrive, Jason Rumney, 2008/01/26
- RE: testing for a remote file to include file on a Windows mappeddrive, Drew Adams, 2008/01/26
- Re: testing for a remote file to include file on a Windows mappeddrive, Stefan Monnier, 2008/01/26
- Re: testing for a remote file to include file on a Windows mappeddrive, Michael Albinus, 2008/01/26
- Re: testing for a remote file to include file on a Windows mappeddrive, Eli Zaretskii, 2008/01/26
- Re: testing for a remote file to include file on a Windows mappeddrive, Michael Albinus, 2008/01/27
- Re: testing for a remote file to include file on a Windows mappeddrive,
Eli Zaretskii <=
- Re: testing for a remote file to include file on a Windows mappeddrive, Andreas Schwab, 2008/01/27
- Re: testing for a remote file to include file on a Windows mappeddrive, Michael Albinus, 2008/01/27
- RE: testing for a remote file to include file on a Windows mappeddrive, Drew Adams, 2008/01/26
- Re: testing for a remote file to include file on a Windows mappeddrive, Stefan Monnier, 2008/01/27
- Re: testing for a remote file to include file on a Windows mappeddrive, Stefan Monnier, 2008/01/27
- Re: testing for a remote file to include file on a Windows mappeddrive, Michael Albinus, 2008/01/29
- Re: testing for a remote file to include file on a Windows mappeddrive, Richard Stallman, 2008/01/30
- Re: testing for a remote file to include file on a Windows mappeddrive, Michael Albinus, 2008/01/30
- Re: testing for a remote file to include file on a Windows mappeddrive, Stefan Monnier, 2008/01/30
- Re: testing for a remote file to include file on a Windows mappeddrive, Michael Albinus, 2008/01/30