all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Sebastian Miele <iota@whxvd.name>
To: Michael Albinus <michael.albinus@gmx.de>
Cc: 64278@debbugs.gnu.org
Subject: bug#64278: 29.0.92; tramp-rclone.el seems to be in a defunct state
Date: Sun, 25 Jun 2023 19:45:53 +0200	[thread overview]
Message-ID: <877crrqugc.fsf@whxvd.name> (raw)
In-Reply-To: <87sfafu2e8.fsf@gmx.de>

> From: Michael Albinus <michael.albinus@gmx.de>
> Date: Sun, 2023-06-25 14:55 +0200
>
> I've never tried the memory type of rclone. I have two test entries in
> ~/.config/rclone/rclone.conf:
>
> [local_drive]
> type = local
> nounc = true
>
> [gdrive]
> type = drive
> scope = drive
> ...
>
>
> Both work, and they are tested regularly in my regression tests. So I
> wouldn't say that tramp-rclone.el is in a defunct state.

I clearly was under a false impression. :-)

>> […]
>
> Reproduced here. I've pushed a fix to the emacs-29 branch in git.
>
> Furthermore, there is indeed a problem detecting a mount point for
> rclone memory type. The appended patch should fix this.

Thanks a lot!

With both, the fix on the emacs-29 branch, and after applying the patch,
everything works for me.

The problem the patch addresses is not relevant at least for Rclone
remotes of type local.  I didn't try Google Drive.  However, the patch
also is necessary for Rclone remotes of type webdav.  I have

  [wolke]
  type = webdav
  url = https://…
  vendor = other
  user = …
  pass = …

and ‘mount -t fuse.rclone’ yields:

  wolke: on /tmp/tramp.rclone.wolke type fuse.rclone …

I.e., at least this WebDAV remote makes Rclone omit the "/", too.
Because of that, I think the patch should be applied upstream.

> However, calling "emacs /rclone:memory:" with the rclone.conf entry
> given by you.conf results in in an empty directory. No file visible
> there, even if I copy something.
>
> I've tried the rclone memory type manually in a shell
>
> # mount -t fuse.rclone
> local_drive:/ on /tmp/tramp.rclone.local_drive type fuse.rclone (rw,nosuid,nodev,relatime,user_id=1000,group_id=1000)
> memory: on /tmp/tramp.rclone.memory type fuse.rclone (rw,nosuid,nodev,relatime,user_id=1000,group_id=1000)
>
> # ls -al /tmp/tramp.rclone.memory
> total 0
> drwxr-xr-x.  1 albinus albinus    0 Jun 25 14:49 .
> drwxrwxrwt. 99 root    root    7800 Jun 25 14:49 ..
>
> # rclone copyto ~/tmp memory:
>
> # ls -al /tmp/tramp.rclone.memory
> total 0
> drwxr-xr-x.  1 albinus albinus    0 Jun 25 14:49 .
> drwxrwxrwt. 99 root    root    7800 Jun 25 14:51 ..
>
> So I'm a little bit undecided what the memory type of rclone is good
> for, and how it works. Do I miss something?

I could not create files in an Rclone remote of type memory, either.
Didn't notice that before reporting the bug.  There is no real use case
for the memory provider, except for debugging.  For me, it was all about
WebDAV, and after the fix and the patch, that works.

Thank you!

Best wishes
Sebastian





  reply	other threads:[~2023-06-25 17:45 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-06-25  3:16 bug#64278: 29.0.92; tramp-rclone.el seems to be in a defunct state Sebastian Miele
     [not found] ` <handler.64278.B.168766492610826.ack@debbugs.gnu.org>
2023-06-25  4:13   ` bug#64278: Acknowledgement (29.0.92; tramp-rclone.el seems to be in a defunct state) Sebastian Miele
2023-06-25 12:55 ` bug#64278: 29.0.92; tramp-rclone.el seems to be in a defunct state Michael Albinus
2023-06-25 17:45   ` Sebastian Miele [this message]
2023-06-26 13:55     ` Michael Albinus

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=877crrqugc.fsf@whxvd.name \
    --to=iota@whxvd.name \
    --cc=64278@debbugs.gnu.org \
    --cc=michael.albinus@gmx.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.