[SOLVED] What on earth has happened to my filesystem? :-\

Ye' old general discussion board. Basically, for everything that isn't covered elsewhere. Come here to shoot the breeze, shoot your mouth off, or whatever suits your fancy.
This forum is not for asking programming related questions.

Moderator: General Moderators

Post Reply
User avatar
Chris Corbyn
Breakbeat Nuttzer
Posts: 13098
Joined: Wed Mar 24, 2004 7:57 am
Location: Melbourne, Australia

[SOLVED] What on earth has happened to my filesystem? :-\

Post by Chris Corbyn »

I tried copying a directory on my Mac and it's all gone pear shaped. I seem to have a recursively nested directory.

The directory "Router" exists inside itself, then in that directory it's there again, and again, and again, and again....

Code: Select all

chris-corbyns-computer:~/Sites d11wtq$ ls -la Router/
total 8
drwxr-xr-x    6 d11wtq  d11wtq   204 Jun 23 18:54 .
drwxr-xr-x   53 d11wtq  d11wtq  1802 Jun 23 19:07 ..
drwxr-xr-x    6 d11wtq  d11wtq   204 Jun 23 18:54 Router
drwxr-xr-x    3 d11wtq  d11wtq   102 Jun 22 21:57 lib
-rw-r--r--    1 d11wtq  d11wtq   109 Jun 23 15:42 routing.php
drwxr-xr-x    4 d11wtq  d11wtq   136 Jun 22 20:57 test
chris-corbyns-computer:~/Sites d11wtq$ cp -r Router router2
cp: router2/Router/Router/.../Router/Router/Router/Router/lib/Request/Route/Strategy/20Collection.php: name too long (not copied)
cp: router2/Router/Router/.../Router/Router/Router/Router/lib/Request/Route/Strategy/30NamedIndex.php: name too long (not copied)
cp: router2/Router/Router/.../Router/Router/Router/Router/lib/Request/Router.php: name too long (not copied)
chris-corbyns-computer:~/Sites d11wtq$ ls -la Router/Router/Router/Router/Router/Router/Router/Router/Router/
total 0
drwxr-xr-x   4 d11wtq  d11wtq  136 Jun 23 18:54 .
drwxr-xr-x   4 d11wtq  d11wtq  136 Jun 23 18:54 ..
drwxr-xr-x   4 d11wtq  d11wtq  136 Jun 23 18:54 Router
drwxr-xr-x   3 d11wtq  d11wtq  102 Jun 23 18:54 lib
chris-corbyns-computer:~/Sites d11wtq$ 
WTF??

There's no symlink causing this as you can see from the ls command. There's no such thing as a "mount --bind" on a Mac neither. I'm baffled but this is annoying since I don't want to lose these files :(

It's a HFS+ filesystem if that's any help.

EDIT | Hold crap, it should only be about 100KB or something, but it's like 4.5MB.

Code: Select all

chris-corbyns-computer:~/Sites d11wtq$ du -sh Router
4.5M    Router
chris-corbyns-computer:~/Sites d11wtq$ watch du -s Router #Thankfully this isn't continually increasing

feyd | trimmed down the repeat of "Router" in the paths
Last edited by Chris Corbyn on Sat Jun 23, 2007 1:17 pm, edited 1 time in total.
User avatar
Chris Corbyn
Breakbeat Nuttzer
Posts: 13098
Joined: Wed Mar 24, 2004 7:57 am
Location: Melbourne, Australia

Post by Chris Corbyn »

Haha, I managed to create it... I'm an idiot with fat fingers obviously:

Code: Select all

chris-corbyns-computer:~/Sites d11wtq$ mkdir something
chris-corbyns-computer:~/Sites d11wtq$ touch something/foo
chris-corbyns-computer:~/Sites d11wtq$ touch something/bar
chris-corbyns-computer:~/Sites d11wtq$ cp -r something something/
cp: something/something/.../something/something/something: name too long (not copied)
cp: something/something/.../something/something/something: name too long (not copied)
chris-corbyns-computer:~/Sites d11wtq$ ls -l something/
bar        foo        something  
chris-corbyns-computer:~/Sites d11wtq$ 
Post Reply