GNU bug report logs - #69085
29.2; Tramp: Extend tramp-make-copy-program-file-name via tramp-methods

Previous Next

Package: emacs;

Reported by: Sean Devlin <spd <at> toadstyle.org>

Date: Mon, 12 Feb 2024 20:11:01 UTC

Severity: normal

Found in version 29.2

Fixed in version 30.1

Done: Michael Albinus <michael.albinus <at> gmx.de>

Bug is archived. No further changes may be made.

Full log


Message #20 received at 69085 <at> debbugs.gnu.org (full text, mbox):

From: Michael Albinus <michael.albinus <at> gmx.de>
To: Sean Devlin <spd <at> toadstyle.org>
Cc: 69085 <at> debbugs.gnu.org
Subject: Re: bug#69085: 29.2; Tramp: Extend
 tramp-make-copy-program-file-name via tramp-methods
Date: Tue, 13 Feb 2024 13:18:12 +0100
Sean Devlin <spd <at> toadstyle.org> writes:

> Hi Michael,

Hi Sean,

> The copy parameters for my method look like so:
>
> (defconst tramp-mymethod
>   '("mymethod"
>     ...
>
>     (tramp-copy-program “my-copy-program")
>     (tramp-copy-args
>      ((“-id" "%h")))))
>
> Invocations of the copy program look like:
>
> my-copy-program -id HOST SRC-FILE DEST-FILE
>
> The HOST is not a DNS name in this case; instead, it’s an identifier
> for a sort of
> abstract container.
>
> For SRC-FILE and DEST-FILE, “remote” file paths just have a fixed
> prefix string,
> i.e. it’s not dependent on the “host” name or the user.
>
> So all I really need is a way to format “remote” file paths like:
>
> (format "myprefix:%s" localname)

Hmm. Some questions:

- What if SRC-FILE or DEST-FILE is local, and the other one is remote?
  Would it still be something like "my-copy-program -id HOST SRC-FILE DEST-FILE"?

- In case both SRC-FILE and DEST-FILE are remote, are they always files
  on the same remote host identified as HOST? Or do you need also a copy
  between two different hosts, using "mymethod"?

- And if HOST is a kind of container, would it be possible for you to
  use the "docker" or "podman" method of Tramp directly?

> Thanks for your help!

Best regards, Michael.




This bug report was last modified 1 year and 184 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.