Forum

Full Version: Nested folder subsystem/8:0/ infinite times?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hi all,

I was looking for a file on the Raspberry Pi filesystem, but during the search, I saw that winscp was accessing a folder which has almost infinite subfolders:

Code:
/sys/bus/mmc/devices/mmc0:b368/block/mmcblk0/bdi/subsystem/8:0/subsystem/8:0/subsystem/8:0/subsystem/8:0/subsystem/8:0/
subsystem/8:0/subsystem/8:0/subsystem/8:0/subsystem/8:0/subsystem/8:0/subsystem/8:0/subsystem/8:0/subsystem/8:0/subsystem/8:0/
subsystem/8:0/subsystem/8:0/subsystem/8:0/subsystem/8:0/subsystem/8:0   (and so on..)

I think this is a bug? Dont know if its Debian or Xbian.
As you can see, the subsystem folder is a symlink to one of the parents:
Code:
root@pi:~# ls -Al /sys/bus/mmc/devices/mmc0\:0007/
total 0
drwxr-xr-x 3 root root    0 Jan  1  1970 block
-r--r--r-- 1 root root 4096 Apr 24 22:26 cid
-r--r--r-- 1 root root 4096 Apr 24 22:26 csd
-r--r--r-- 1 root root 4096 Apr 22 22:05 date
lrwxrwxrwx 1 root root    0 Jan  1  1970 driver -> ../../../../../bus/mmc/drivers/mmcblk
-r--r--r-- 1 root root 4096 Apr 24 22:26 erase_size
-r--r--r-- 1 root root 4096 Apr 24 22:26 fwrev
-r--r--r-- 1 root root 4096 Apr 24 22:26 hwrev
-r--r--r-- 1 root root 4096 Apr 24 22:26 manfid
-r--r--r-- 1 root root 4096 Jan  1  1970 name
-r--r--r-- 1 root root 4096 Apr 24 22:26 oemid
-r--r--r-- 1 root root 4096 Apr 24 22:26 preferred_erase_size
-r--r--r-- 1 root root 4096 Apr 24 22:26 scr
-r--r--r-- 1 root root 4096 Jan  1  1970 serial
lrwxrwxrwx 1 root root    0 Jan  1  1970 subsystem -> ../../../../../bus/mmc
-r--r--r-- 1 root root 4096 Apr 22 22:05 type
-rw-r--r-- 1 root root 4096 Jan  1  1970 uevent
Hi CurlyMo, thnx, but are you giving an explanation, or a confirmation that it's a bug?
Explanation. The kernel is responsible.
Reference URL's