From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: adam plaice Newsgroups: gmane.emacs.bugs Subject: bug#28519: 26.0.50; Dired move of directory across partition boundary fails Date: Tue, 19 Sep 2017 23:31:21 +0100 Message-ID: NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Trace: blaine.gmane.org 1505861056 27108 195.159.176.226 (19 Sep 2017 22:44:16 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Tue, 19 Sep 2017 22:44:16 +0000 (UTC) To: 28519@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Sep 20 00:44:10 2017 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1duRFP-0006bF-5E for geb-bug-gnu-emacs@m.gmane.org; Wed, 20 Sep 2017 00:44:07 +0200 Original-Received: from localhost ([::1]:45746 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1duRFW-0007hS-Dt for geb-bug-gnu-emacs@m.gmane.org; Tue, 19 Sep 2017 18:44:14 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:46946) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1duRFM-0007hD-Na for bug-gnu-emacs@gnu.org; Tue, 19 Sep 2017 18:44:06 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1duRFL-0008IL-LB for bug-gnu-emacs@gnu.org; Tue, 19 Sep 2017 18:44:04 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:40113) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1duRFL-0008IC-Gn for bug-gnu-emacs@gnu.org; Tue, 19 Sep 2017 18:44:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1duRFL-0000IG-4s for bug-gnu-emacs@gnu.org; Tue, 19 Sep 2017 18:44:03 -0400 X-Loop: help-debbugs@gnu.org Resent-From: adam plaice Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 19 Sep 2017 22:44:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 28519 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.15058609821047 (code B ref -1); Tue, 19 Sep 2017 22:44:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 19 Sep 2017 22:43:02 +0000 Original-Received: from localhost ([127.0.0.1]:48792 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1duREL-0000GY-Tb for submit@debbugs.gnu.org; Tue, 19 Sep 2017 18:43:02 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:47278) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1duR3G-0008SW-2b for submit@debbugs.gnu.org; Tue, 19 Sep 2017 18:31:34 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1duR39-0004sg-PP for submit@debbugs.gnu.org; Tue, 19 Sep 2017 18:31:28 -0400 Original-Received: from lists.gnu.org ([2001:4830:134:3::11]:37452) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1duR39-0004sV-ME for submit@debbugs.gnu.org; Tue, 19 Sep 2017 18:31:27 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:38237) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1duR37-0005QL-Pd for bug-gnu-emacs@gnu.org; Tue, 19 Sep 2017 18:31:27 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1duR36-0004pW-L7 for bug-gnu-emacs@gnu.org; Tue, 19 Sep 2017 18:31:25 -0400 Original-Received: from mail-yw0-x230.google.com ([2607:f8b0:4002:c05::230]:53162) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1duR36-0004nv-FY for bug-gnu-emacs@gnu.org; Tue, 19 Sep 2017 18:31:24 -0400 Original-Received: by mail-yw0-x230.google.com with SMTP id i6so739586ywc.9 for ; Tue, 19 Sep 2017 15:31:23 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:sender:from:date:message-id:subject:to :content-transfer-encoding; bh=u7Vb1UIok5xmG6DKtJRKYg5S/qa0jWeC19y0CFMcSWw=; b=imw5djYJTqGurQjMmOJ5/wfyq+Yc4GKMBNREfpXczqroPVoG9xjYhWF6D42IYmUVDC HlXMHyScGtRrm0kP0+/vUPLv9USHjxCiErvc4Cdx30xqZkReEyA3JJ1GbDerGqfJFsl6 Kbab7FnkFYmW6Lj2Nt/mpWGEpdErdyj+2FXwuz0Z6DcGgIzPUUwYQKvA+zbFicrNV2fH +i+ZCnDb/wf4lnW9xAgE9LHM8NpE/EoPRXnrvpkEUMv5S4qg3rWn7/AgZjE8V06PBbeg /6xeTBvMsQXJA4Gt5ngTb/ZV9EQc4HsfHRxjnoZJA3s3QTz1/oo9TdpIgUstTzgAJauP Laiw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:sender:from:date:message-id:subject :to:content-transfer-encoding; bh=u7Vb1UIok5xmG6DKtJRKYg5S/qa0jWeC19y0CFMcSWw=; b=b4jy7ZRSd7QJiBt4FoHfphiynaQ6+4/pidCM8rDJlMIUuGYRLuldwF+iOT8IdzYvFw rWLAjUuo4MG9oSNjaRlY9jUS9P4mgEbuHWcFCXDdrDzMfXhZ7ppppic2mcRuZjbVNeYp JoKlKGilTRrl7gIinZS/NO8yJ5y9vXgX2uPH4DnYjfMLQV0wIYbpE1ZZhjnLgVpOpuWe WgIKcpz79EnVrBCOuHVoQp+4e3fmFiw0yDIgOlte9zdO5UoY/nI4xmIVUhkbVDkzogWs rZ/NTHgB/WL4zaYEidjlyazMoG2STbRGAvhASkSavHfc94kCd1iaTht1cKHu8W1lKoHx UfzA== X-Gm-Message-State: AHPjjUjAHystdD6fy3Ka6oFy4bvFNB5cpEWe2Hrz3Di0u42AMVu6fyYN fTcTeWPxwceE5IO4HBNF3xf1wgGQS+7PN+LUiitS1w== X-Google-Smtp-Source: AOwi7QCJbFJAmyG7ml435uBn+8+kXFEax0W7kTsJN5CprfoG4665/y3DsMd8/38J+t5oAH8ruYqkWwFmzrH1gNvIhUY= X-Received: by 10.37.164.9 with SMTP id f9mr2112404ybi.357.1505860282153; Tue, 19 Sep 2017 15:31:22 -0700 (PDT) Original-Received: by 10.37.216.131 with HTTP; Tue, 19 Sep 2017 15:31:21 -0700 (PDT) X-Google-Sender-Auth: yuMbbC2eBkap_43p4CDoIhWTwEk X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Mailman-Approved-At: Tue, 19 Sep 2017 18:42:59 -0400 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:137154 Archived-At: Moving a directory, with dired ("R"), across a partition boundary fails. To reproduce: mkdir test_dired_move/a -p cd test_dired_move emacs -Q --eval '(dired ".")' In dired, execute `dired-do-rename' (kbd "R") on the `a' directory and select a (writable) destination on a different partition, if such exists (typically /media/... or /mnt/... on a unix system). *Dired log* contains (in my specific case): Move =E2=80=98/home/adam/test_dired_move/a=E2=80=99 to =E2=80=98/mnt/data/a= =E2=80=99 failed: (file-error Non-regular file Is a directory /home/adam/test_dired_move/a) Move failed for 1 of 1 file I think (though I'm not 100% certain) that the problem can be traced to rename-file, since the following elisp fails as well (with the exact same file-error): (rename-file "/home/adam/test_dired_move/a" "/mnt/data/a") The regression occurred in the commit range 52739ffe773eb403f58a6223b7ef64175df58dd7..e22794867d878d53675fcc91d2ef1ad24= 94a2ff2 (I have not had time to rebuild emacs sufficiently many times and check which exact commit is responsible). Since 01c885f21f343045783eb9ad1ff5f9b83d6cd789 touches src/fileio.c I presume that it would be this one. Moving a directory on the same partition works as expected. Moving a plain file to another partition also works normally. The bug is present in the heads of both the emacs-26 (4bef92e9e02d074de1d92e30dc5ef4dd62558c80) and master (b1f83c10df7d1bbb16f4e13d18119ad4aa1a2137) branches. Thank you for reading and spending your time on emacs! Adam In GNU Emacs 26.0.50 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.18.9) of 2017-09-13 built on adam Repository revision: 4bef92e9e02d074de1d92e30dc5ef4dd62558c80 Windowing system distributor 'The X.Org Foundation', version 11.0.11804000 System Description: Ubuntu 16.04.3 LTS Recent messages: For information about GNU Emacs and the GNU system, type C-h C-a. Configured using: 'configure --with-modules --without-pop' Configured features: XPM JPEG TIFF GIF PNG RSVG IMAGEMAGICK SOUND GPM DBUS GSETTINGS NOTIFY ACL LIBSELINUX GNUTLS LIBXML2 FREETYPE M17N_FLT LIBOTF XFT ZLIB TOOLKIT_SCROLL_BARS GTK3 X11 MODULES LIBSYSTEMD LCMS2 Important settings: value of $LANG: en_GB.UTF-8 value of $XMODIFIERS: @im=3Dibus locale-coding-system: utf-8-unix Major mode: Dired by name Minor modes in effect: tooltip-mode: t global-eldoc-mode: t electric-indent-mode: t mouse-wheel-mode: t tool-bar-mode: t menu-bar-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t blink-cursor-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t buffer-read-only: t line-number-mode: t transient-mark-mode: t Load-path shadows: None found. Features: (shadow sort mail-extr emacsbug message subr-x puny cl-macs seq byte-opt gv bytecomp byte-compile cconv format-spec rfc822 mml easymenu mml-sec password-cache epa derived epg epg-config gnus-util rmail rmail-loaddefs mm-decode mm-bodies mm-encode mail-parse rfc2231 mailabbrev gmm-utils mailheader sendmail rfc2047 rfc2045 ietf-drums mm-util mail-prsvr mail-utils dired-aux cl-loaddefs cl-lib dired dired-loaddefs elec-pair time-date mule-util tooltip eldoc electric uniquify ediff-hook vc-hooks lisp-float-type mwheel term/x-win x-win term/common-win x-dnd tool-bar dnd fontset image regexp-opt fringe tabulated-list replace newcomment text-mode elisp-mode lisp-mode prog-mode register page menu-bar rfn-eshadow isearch timer select scroll-bar mouse jit-lock font-lock syntax facemenu font-core term/tty-colors frame cl-generic cham georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean japanese eucjp-ms cp51932 hebrew greek romanian slovak czech european ethiopic indian cyrillic chinese composite charscript charprop case-table epa-hook jka-cmpr-hook help simple abbrev obarray minibuffer cl-preloaded nadvice loaddefs button faces cus-face macroexp files text-properties overlay sha1 md5 base64 format env code-pages mule custom widget hashtable-print-readable backquote dbusbind inotify lcms2 dynamic-setting system-font-setting font-render-setting move-toolbar gtk x-toolkit x multi-tty make-network-process emacs) Memory information: ((conses 16 100826 7691) (symbols 48 20537 1) (miscs 40 52 193) (strings 32 28786 1222) (string-bytes 1 745696) (vectors 16 15163) (vector-slots 8 497313 9957) (floats 8 48 124) (intervals 56 824 11) (buffers 992 15) (heap 1024 24906 1131))