An even simpler solution would be to say that it won't move files across
file systems.
Matthias
----- Original Message -----
From: "Ludovic Rousseau" <ludovic.rouss...@gmail.com>
To: <mwan...@sentex.net>
Cc: <608...@bugs.debian.org>
Sent: Thursday, January 06, 2011 3:25 PM
Subject: Re: Bug#608511: jhead can't move files from a HDD to another
Hello Mathias,
Can you have a look at the Debian bug report bellow?
A simple solution would be to replace calls to rename() by a copy +
remove().
Bye
Le 31/12/10 18:12, mougly a écrit :
Package: jhead
Version: 1:2.90-2
Severity: normal
Hi,
When I tried to move some photos, I typed :
pwd = /home/$USER/venus/Vero/photos-PAT
jhead -nf/home/$USER/photos/%Y/%Y-%m-PAT/%f 10*.jpg
This doesn't work (directory creation is OK)
If I try
jhead -nf/home/$USER/venus/photos/%Y/%Y-%m-PAT/%f 10*.jpg
This work.
Important : venus is a mountpoint for another HDD :
/etc/fstab :
LABEL=home /home ext3 defaults,noatime,nodiratime
0 2
LABEL=VENUS /home/batbat/venus ext3 users,noatime,nodiratime
0 0
Looking with strace, I found :
rename("100_1610.jpg",
"/home/$USER/photos/2008/2008-01-Patricia/100_1610.jpg") = -1 EXDEV
(Invalid cross-device link)
write(1, "Error: Couldn't rename '100_1610"..., 98) = 98
This is why I think it's because of the 2 devices.
Maybe it's a bug for the author and not for the package ?
Thanks.
-- System Information:
Debian Release: squeeze/sid
APT prefers testing
APT policy: (500, 'testing')
Architecture: i386 (i686)
Kernel: Linux 2.6.32-5-486
Locale: LANG=fr_FR.UTF-8, LC_CTYPE=fr_FR.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Versions of packages jhead depends on:
ii libc6 2.11.2-7 Embedded GNU C Library:
Shared lib
ii libjpeg-progs 8b-1 Programs for manipulating
JPEG fil
jhead recommends no packages.
jhead suggests no packages.
-- no debconf information
--
Dr. Ludovic Rousseau
--
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org