[Top][All Lists]

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

Re: tramp (2.1.5); Syntax of df wrong in tramp?

From: Michael Albinus
Subject: Re: tramp (2.1.5); Syntax of df wrong in tramp?
Date: Fri, 10 Mar 2006 11:38:56 +0100
User-agent: Gnus/5.1002 (Gnus v5.10.2) Emacs/20.7 (hpux)

<address@hidden> writes:

> Whenever I try to 'dired' to a directory over ssh over tramp, it fails
> in using the command 'df -Pk'. On Solaris the option -P doesn't exist,
> and on other UNIXs where it does, it can't handle the parameter
> /ssh:address@hidden:/usr for example... Why and for what does tramp
> actually use the df command? Can I customize it?

Tramp doesn't use "df" itself. It comes from dired, which calls
dired-free-space-program (Emacs 21) or directory-free-space-program
(Emacs 22) via call-process.

Since Tramp 2.1.5, call-process and start-process have been extended to
run processes also on remote hosts. This is desired, because it
doesn't make sense that dired checks the size of a local file system,
when it works on a remote one.

"df" supports the -P option also on Solaris; one must use the Posix
version "/usr/xpg4/bin/df". You should customize tramp-remote-path in
order to have "/usr/xpg4/bin" on top (maybe this should be the default?).

Extending dired-insert-directory in Emacs 21 that it understands remote
directories, I'll try to find a fix.

> Best regards,
> Roland Mettler

Best regards, Michael.

reply via email to

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