> On Tue, Dec 16, 2008 at 20:37, Roland <devz...@web.de> wrote: > > i have come across a weird autocomplete issue i assume it is related to > > btrfs. > > > > let`s have some dirs: > > > > /non-btrfs-mount > > ./linux > > ./testdir > > > > /brtfs-mount > > ./linux > > ./testdir > > > > now, if i do "cd t<tab>" in /non-btrfs-mount, "t" autocompletes to "testdir" > > same for l<tab>inux - bash autocompletes as expected. > > > > now, the weird thing is, that on /btrfs-mount this behaves different. > > > > autocompletion for testdir works, but not for linux dir. weird. > > > > can someone reproduce this ? > > Open another shell, find the bash process pid of the first shell with: > ps afx > and do: > strace -p <pid> > Go back to the first shell, hit <tab>, and the trace should show > what's going on. You see a significant difference there?
ok, here we go (i hope i did not cut important parts). i don`t see the real issue, but i did another interesting finding - see below bad (cd l<tab>): open(".", O_RDONLY|O_NONBLOCK|O_LARGEFILE|O_DIRECTORY|O_CLOEXEC) = 3 fstat64(3, {st_dev=makedev(0, 19), st_ino=256, st_mode=S_IFDIR|0555, st_nlink=1, st_uid=0, st_gid=0, st_blksize=4096, st_blocks=8, st_size=18, st_atime=2008/12/16-21:32:38, st_mtime=2008/12/16-21:32:37, st_ctime=2008/12/16-21:32:37}) = 0 getdents64(3, {{d_ino=256, d_off=2, d_type=DT_DIR, d_reclen=24, d_name="."} {d_ino=256, d_off=2, d_type=DT_DIR, d_reclen=24, d_name=".."} {d_ino=257, d_off=3, d_type=DT_DIR, d_reclen=24, d_name="test"} {d_ino=258, d_off=9223372036854775807, d_type=DT_DIR, d_reclen=32, d_name="linux"}}, 4096) = 104 _llseek(3, 3, [3], SEEK_SET) = 0 getdents64(3, {{d_ino=258, d_off=9223372036854775807, d_type=DT_DIR, d_reclen=32, d_name="linux"}}, 4096) = 32 close(3) = 0 write(2, "\7", 1) = 1 rt_sigprocmask(SIG_BLOCK, NULL, [], 8) = 0 good (cd t<tab>): open(".", O_RDONLY|O_NONBLOCK|O_LARGEFILE|O_DIRECTORY|O_CLOEXEC) = 3 fstat64(3, {st_dev=makedev(0, 19), st_ino=256, st_mode=S_IFDIR|0555, st_nlink=1, st_uid=0, st_gid=0, st_blksize=4096, st_blocks=8, st_size=18, st_atime=2008/12/16-21:38:13, st_mtime=2008/12/16-21:38:11, st_ctime=2008/12/16-21:38:11}) = 0 getdents64(3, {{d_ino=256, d_off=2, d_type=DT_DIR, d_reclen=24, d_name="."} {d_ino=256, d_off=2, d_type=DT_DIR, d_reclen=24, d_name=".."} {d_ino=257, d_off=3, d_type=DT_DIR, d_reclen=24, d_name="test"} {d_ino=258, d_off=9223372036854775807, d_type=DT_DIR, d_reclen=32, d_name="linux"}}, 4096) = 104 _llseek(3, 3, [3], SEEK_SET) = 0 getdents64(3, {{d_ino=258, d_off=9223372036854775807, d_type=DT_DIR, d_reclen=32, d_name="linux"}}, 4096) = 32 close(3) = 0 stat64("test", {st_dev=makedev(0, 19), st_ino=257, st_mode=S_IFDIR|0755, st_nlink=1, st_uid=0, st_gid=0, st_blksize=4096, st_blocks=0, st_size=0, st_atime=2008/12/16-21:15:29, st_mtime=2008/12/16-21:15:29, st_ctime=2008/12/16-21:15:29}) = 0 stat64("test", {st_dev=makedev(0, 19), st_ino=257, st_mode=S_IFDIR|0755, st_nlink=1, st_uid=0, st_gid=0, st_blksize=4096, st_blocks=0, st_size=0, st_atime=2008/12/16-21:15:29, st_mtime=2008/12/16-21:15:29, st_ctime=2008/12/16-21:15:29}) = 0 write(2, "est/", 4) = 4 rt_sigprocmask(SIG_BLOCK, NULL, [], 8) = 0 and now, after adding a file to that dir with "touch abcd", for my curiousity this makes "cd l<tab>" work again. open(".", O_RDONLY|O_NONBLOCK|O_LARGEFILE|O_DIRECTORY|O_CLOEXEC) = 3 fstat64(3, {st_dev=makedev(0, 19), st_ino=256, st_mode=S_IFDIR|0555, st_nlink=1, st_uid=0, st_gid=0, st_blksize=4096, st_blocks=8, st_size=26, st_atime=2008/12/16-21:34:45, st_mtime=2008/12/16-21:34:44, st_ctime=2008/12/16-21:34:44}) = 0 getdents64(3, {{d_ino=256, d_off=2, d_type=DT_DIR, d_reclen=24, d_name="."} {d_ino=256, d_off=2, d_type=DT_DIR, d_reclen=24, d_name=".."} {d_ino=257, d_off=3, d_type=DT_DIR, d_reclen=24, d_name="test"} {d_ino=258, d_off=17, d_type=DT_DIR, d_reclen=32, d_name="linux"} {d_ino=272, d_off=9223372036854775807, d_type=DT_REG, d_reclen=24, d_name="abcd"}}, 4096) = 128 _llseek(3, 17, [17], SEEK_SET) = 0 getdents64(3, {{d_ino=272, d_off=9223372036854775807, d_type=DT_REG, d_reclen=24, d_name="abcd"}}, 4096) = 24 close(3) = 0 stat64("linux", {st_dev=makedev(0, 19), st_ino=258, st_mode=S_IFDIR|0755, st_nlink=1, st_uid=0, st_gid=0, st_blksize=4096, st_blocks=0, st_size=0, st_atime=2008/12/16-21:15:33, st_mtime=2008/12/16-21:15:33, st_ctime=2008/12/16-21:15:33}) = 0 stat64("linux", {st_dev=makedev(0, 19), st_ino=258, st_mode=S_IFDIR|0755, st_nlink=1, st_uid=0, st_gid=0, st_blksize=4096, st_blocks=0, st_size=0, st_atime=2008/12/16-21:15:33, st_mtime=2008/12/16-21:15:33, st_ctime=2008/12/16-21:15:33}) = 0 write(2, "inux/", 5) = 5 rt_sigprocmask(SIG_BLOCK, NULL, [], 8) = 0 regards roland _______________________________________________________________________ Täglich 1.000.000 Euro gewinnen! Jetzt kostenlos WEB.DE MillionenKlick spielen! https://millionenklick.web.de/?mc=m...@footer.mklick@home -- To unsubscribe from this list: send the line "unsubscribe linux-btrfs" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html