[tahoe-lafs-trac-stream] [Tahoe-LAFS] #943: "tahoe mv" deleted my files?
Tahoe-LAFS
trac at tahoe-lafs.org
Mon May 11 13:24:17 UTC 2015
#943: "tahoe mv" deleted my files?
-------------------------+-------------------------------------------------
Reporter: zooko | Owner: daira
Type: defect | Status: new
Priority: | Milestone: 1.11.0
critical | Version: 1.6.0
Component: code- | Keywords: tahoe-mv usability preservation
frontend-cli | sftp ftpd
Resolution: |
Launchpad Bug: |
-------------------------+-------------------------------------------------
Changes (by daira):
* owner: davidsarah => daira
* status: assigned => new
* milestone: soon => 1.11.0
Old description:
> I had a bunch of files in a directory and I wanted to mv them into a
> subdirectory. So first I ran "tahoe ls" to make sure I could get the
> names of the files:
> {{{
> $ time ~/playground/tahoe-lafs/bin/tahoe ls --dir-
> cap=URI:DIR2:zssplcanct54waahwjjngjyhke:vvdpvxybwc6x7az5i64heqdnql2mdi6fspvxtje4iwzkcvvwukpq
> tahoe:
> 01 - Balrog Boogie.mp3
> 02 - Heroines.mp3
> 03 - Poetic Pitbull Revolutions.mp3
> 04 - Rag Doll Physics.mp3
> 05 - D'angelo.mp3
> 06 - Velvet Embracer.mp3
> 07 - Gunpowder Chant.mp3
> 08 - Infralove.mp3
> 09 - Wedding March for a Bullet.mp3
> 10 - Qualms of Conscience.mp3
> 11 - Zodiac Virtues.mp3
> 12 - Porcelain Judas.mp3
> 13 - Pink Noise Waltz.mp3
> Diablo_Swing_Orchestra-The_Butcher's_Ballroom
> Gaetano Verdi
> License.txt
> Readme - www.jamendo.com .txt
> [cover] Diablo Swing Orchestra - The Butcher's Ballroom.jpg
> on_ootles
>
> real 0m0.926s
> user 0m0.490s
> sys 0m0.219s
> }}}
>
> Then I wrote this bash script that runs "tahoe mv tahoe:$FILENAME
> tahoe:new_subdir/":
>
> {{{
> $ for F in ` ~/playground/tahoe-lafs/bin/tahoe ls --dir-
> cap=URI:DIR2:zssplcanct54waahwjjngjyhke:vvdpvxybwc6x7az5i64heqdnql2mdi6fspvxtje4iwzkcvvwukpq
> tahoe:` ; do echo $F; time ~/playground/tahoe-lafs/bin/tahoe mv --dir-
> cap=URI:DIR2:zssplcanct54waahwjjngjyhke:vvdpvxybwc6x7az5i64heqdnql2mdi6fspvxtje4iwzkcvvwukpq
> "tahoe:${F}" tahoe:Diablo_Swing_Orchestra-The_Butcher\'s_Ballroom/ ; done
>
> 01 - Balrog Boogie.mp3
> OK
>
> real 0m3.862s
> user 0m0.492s
> sys 0m0.218s
> 02 - Heroines.mp3
> OK
>
> real 0m2.803s
> user 0m0.497s
> sys 0m0.215s
> 03 - Poetic Pitbull Revolutions.mp3
> OK
>
> real 0m7.097s
> user 0m0.498s
> sys 0m0.223s
> 04 - Rag Doll Physics.mp3
> OK
>
> real 0m2.770s
> user 0m0.492s
> sys 0m0.217s
> 05 - D'angelo.mp3
> OK
>
> real 0m3.383s
> user 0m0.501s
> sys 0m0.223s
> 06 - Velvet Embracer.mp3
> OK
>
> real 0m2.815s
> user 0m0.497s
> sys 0m0.217s
> 07 - Gunpowder Chant.mp3
> OK
>
> real 0m3.557s
> user 0m0.506s
> sys 0m0.232s
> 08 - Infralove.mp3
> OK
>
> real 0m2.846s
> user 0m0.505s
> sys 0m0.227s
> 09 - Wedding March for a Bullet.mp3
> OK
>
> real 0m3.492s
> user 0m0.493s
> sys 0m0.219s
> 10 - Qualms of Conscience.mp3
> OK
>
> real 0m3.635s
> user 0m0.490s
> sys 0m0.217s
> 11 - Zodiac Virtues.mp3
> OK
>
> real 0m2.774s
> user 0m0.494s
> sys 0m0.220s
> 12 - Porcelain Judas.mp3
> OK
>
> real 0m3.298s
> user 0m0.490s
> sys 0m0.217s
> 13 - Pink Noise Waltz.mp3
> OK
>
> real 0m3.997s
> user 0m0.497s
> sys 0m0.223s
> Diablo_Swing_Orchestra-The_Butcher's_Ballroom
> OK
>
> real 0m2.859s
> user 0m0.507s
> sys 0m0.226s
> Gaetano Verdi
> OK
>
> real 0m4.548s
> user 0m0.502s
> sys 0m0.226s
> License.txt
> OK
>
> real 0m3.194s
> user 0m0.507s
> sys 0m0.227s
> Readme - www.jamendo.com .txt
> OK
>
> real 0m2.772s
> user 0m0.500s
> sys 0m0.226s
> [cover] Diablo Swing Orchestra - The Butcher's Ballroom.jpg
> OK
>
> real 0m3.347s
> user 0m0.503s
> sys 0m0.221s
> on_ootles
> OK
>
> real 0m3.750s
> user 0m0.506s
> sys 0m0.227s
> }}}
>
> All mv's reported OK. So far so good.
>
> Then I went to play the music files from their new locations and... What
> the heck?? All the .mp3 files are gone, but the other files are still
> there??
>
> {{{
> $ time ~/playground/tahoe-lafs/bin/tahoe ls --dir-
> cap=URI:DIR2:zssplcanct54waahwjjngjyhke:vvdpvxybwc6x7az5i64heqdnql2mdi6fspvxtje4iwzkcvvwukpq
> tahoe:Diablo_Swing_Orchestra-The_Butcher\'s_Ballroom
>
> Gaetano Verdi
> License.txt
> Readme - www.jamendo.com .txt
> [cover] Diablo Swing Orchestra - The Butcher's Ballroom.jpg
> on_ootles
>
> real 0m1.054s
> user 0m0.475s
> sys 0m0.211s
> }}}
New description:
I had a bunch of files in a directory and I wanted to mv them into a
subdirectory. So first I ran "tahoe ls" to make sure I could get the names
of the files:
{{{
$ time ~/playground/tahoe-lafs/bin/tahoe ls --dir-
cap=URI:DIR2:zssplcanct54waahwjjngjyhke:vvdpvxybwc6x7az5i64heqdnql2mdi6fspvxtje4iwzkcvvwukpq
tahoe:
01 - Balrog Boogie.mp3
02 - Heroines.mp3
03 - Poetic Pitbull Revolutions.mp3
04 - Rag Doll Physics.mp3
05 - D'angelo.mp3
06 - Velvet Embracer.mp3
07 - Gunpowder Chant.mp3
08 - Infralove.mp3
09 - Wedding March for a Bullet.mp3
10 - Qualms of Conscience.mp3
11 - Zodiac Virtues.mp3
12 - Porcelain Judas.mp3
13 - Pink Noise Waltz.mp3
Diablo_Swing_Orchestra-The_Butcher's_Ballroom
Gaetano Verdi
License.txt
Readme - www.jamendo.com .txt
[cover] Diablo Swing Orchestra - The Butcher's Ballroom.jpg
on_ootles
real 0m0.926s
user 0m0.490s
sys 0m0.219s
}}}
Then I wrote this bash script that runs "tahoe mv tahoe:$FILENAME
tahoe:new_subdir/":
{{{
$ for F in ` ~/playground/tahoe-lafs/bin/tahoe ls --dir-
cap=URI:DIR2:zssplcanct54waahwjjngjyhke:vvdpvxybwc6x7az5i64heqdnql2mdi6fspvxtje4iwzkcvvwukpq
tahoe:` ; do echo $F; time ~/playground/tahoe-lafs/bin/tahoe mv --dir-
cap=URI:DIR2:zssplcanct54waahwjjngjyhke:vvdpvxybwc6x7az5i64heqdnql2mdi6fspvxtje4iwzkcvvwukpq
"tahoe:${F}" tahoe:Diablo_Swing_Orchestra-The_Butcher\'s_Ballroom/ ; done
01 - Balrog Boogie.mp3
OK
real 0m3.862s
user 0m0.492s
sys 0m0.218s
02 - Heroines.mp3
OK
real 0m2.803s
user 0m0.497s
sys 0m0.215s
03 - Poetic Pitbull Revolutions.mp3
OK
real 0m7.097s
user 0m0.498s
sys 0m0.223s
04 - Rag Doll Physics.mp3
OK
real 0m2.770s
user 0m0.492s
sys 0m0.217s
05 - D'angelo.mp3
OK
real 0m3.383s
user 0m0.501s
sys 0m0.223s
06 - Velvet Embracer.mp3
OK
real 0m2.815s
user 0m0.497s
sys 0m0.217s
07 - Gunpowder Chant.mp3
OK
real 0m3.557s
user 0m0.506s
sys 0m0.232s
08 - Infralove.mp3
OK
real 0m2.846s
user 0m0.505s
sys 0m0.227s
09 - Wedding March for a Bullet.mp3
OK
real 0m3.492s
user 0m0.493s
sys 0m0.219s
10 - Qualms of Conscience.mp3
OK
real 0m3.635s
user 0m0.490s
sys 0m0.217s
11 - Zodiac Virtues.mp3
OK
real 0m2.774s
user 0m0.494s
sys 0m0.220s
12 - Porcelain Judas.mp3
OK
real 0m3.298s
user 0m0.490s
sys 0m0.217s
13 - Pink Noise Waltz.mp3
OK
real 0m3.997s
user 0m0.497s
sys 0m0.223s
Diablo_Swing_Orchestra-The_Butcher's_Ballroom
OK
real 0m2.859s
user 0m0.507s
sys 0m0.226s
Gaetano Verdi
OK
real 0m4.548s
user 0m0.502s
sys 0m0.226s
License.txt
OK
real 0m3.194s
user 0m0.507s
sys 0m0.227s
Readme - www.jamendo.com .txt
OK
real 0m2.772s
user 0m0.500s
sys 0m0.226s
[cover] Diablo Swing Orchestra - The Butcher's Ballroom.jpg
OK
real 0m3.347s
user 0m0.503s
sys 0m0.221s
on_ootles
OK
real 0m3.750s
user 0m0.506s
sys 0m0.227s
}}}
All mv's reported OK. So far so good.
Then I went to play the music files from their new locations and... What
the heck?? All the .mp3 files are gone, but the other files are still
there??
{{{
$ time ~/playground/tahoe-lafs/bin/tahoe ls --dir-
cap=URI:DIR2:zssplcanct54waahwjjngjyhke:vvdpvxybwc6x7az5i64heqdnql2mdi6fspvxtje4iwzkcvvwukpq
tahoe:Diablo_Swing_Orchestra-The_Butcher\'s_Ballroom
Gaetano Verdi
License.txt
Readme - www.jamendo.com .txt
[cover] Diablo Swing Orchestra - The Butcher's Ballroom.jpg
on_ootles
real 0m1.054s
user 0m0.475s
sys 0m0.211s
}}}
--
--
Ticket URL: <https://tahoe-lafs.org/trac/tahoe-lafs/ticket/943#comment:23>
Tahoe-LAFS <https://Tahoe-LAFS.org>
secure decentralized storage
More information about the tahoe-lafs-trac-stream
mailing list