/ 2004-08-03 12:49:39 +0200 \ Uwe Debacher:
If you have a 9.1-System with reiserfs test it
Up to now I could not find any reiserfs-partition an a SuSE 9.1-System without this problem.
But while searching fo such an system I found an other thing. The problem only exists in the root of a partition. So on my systems /tmp has an own partition. If not you may have both directories in /tmp but not in /
Unfortunately I have to confirm this problem. Cc feedback, secutity etc. Lars Ellenberg ------- PROBLEM ------- Confirmed name clashes in the base directory of any reiserfs mount with SuSE kernel 2.6.5+. ls -l *3001 # no such file ... mkdir mm3001 # create one ... ls -lid mm3001 nb3001 # ... get both ! 332106 drwxr-xr-x 2 root root 48 Aug 3 13:37 mm3001 332106 drwxr-xr-x 2 root root 48 Aug 3 13:37 nb3001 ----------- SYSTEM INFO ----------- Base install SuSE 9.0 // 9.1 To verify reported strange behaviour, installed one of the most recent SuSE 2.6.X kernels. Linux minna 2.6.5-7.61-lge01 #1 Wed Jun 2 21:52:29 CEST 2004 i686 i686 i386 GNU/Linux ,-- Information about the reiserfs in question: | |debugreiserfs 3.6.9 (2003 www.namesys.com) |Filesystem state: consistency is not checked after last mounting | |Reiserfs super block in block 16 on 0xfd0d of format 3.6 with standard journal |Count of blocks on the device: 1048576 |Number of bitmaps: 32 |Blocksize: 4096 |Free blocks (count of blocks - used [journal, bitmaps, data, reserved] blocks): 281844 |Root block: 597731 |Filesystem is NOT clean |Tree height: 5 |Hash function used to sort names: "r5" |Objectid map size 112, max 972 |Journal parameters: | Device [0x0] | Magic [0x2117d8e4] | Size 8193 blocks (including 1 for journal header) (first block 18) | Max transaction length 1024 blocks | Max batch size 900 blocks | Max commit age 30 |Blocks reserved by journal: 0 |Fs state field: 0x0: |sb_version: 2 |inode generation number: 110473 |UUID: 878e2a63-aa2a-4533-a2ab-e874a4df17e9 |LABEL: |Set flags in SB: | ATTRIBUTES CLEAN `--- --------- REPRODUCE --------- MNT=/usr/kernel-src mount | grep $MNT /dev/mapper/LVM--minna-kernel--src on /usr/kernel-src type reiserfs (rw) umount $MNT; reiserfsck $DEV [ no errors ] mount $MNT; cd $MNT ls -lid mm3001 nb3001 ls: mm3001: No such file or directory ls: nb3001: No such file or directory mkdir mm3001 ls -lid mm3001 nb3001 332106 drwxr-xr-x 2 root root 48 Aug 3 13:34 mm3001 332106 drwxr-xr-x 2 root root 48 Aug 3 13:34 nb3001 mkdir nb3001 mkdir: cannot create directory `nb3001': File exists rmdir nb3001 ls -lid mm3001 nb3001 ls: mm3001: No such file or directory ls: nb3001: No such file or directory # AGAIN. mkdir mm3001 ls -lid *3001 332106 drwxr-xr-x 2 root root 48 Aug 3 13:36 mm3001 ls -lid mm3001 nb3001 332106 drwxr-xr-x 2 root root 48 Aug 3 13:36 mm3001 332106 drwxr-xr-x 2 root root 48 Aug 3 13:36 nb3001 ls -lid *3001 332106 drwxr-xr-x 2 root root 48 Aug 3 13:36 mm3001 rmdir nb3001 mkdir nb3001 ls -lid *3001 332106 drwxr-xr-x 2 root root 48 Aug 3 13:37 nb3001 ls -lid mm3001 nb3001 332106 drwxr-xr-x 2 root root 48 Aug 3 13:37 mm3001 332106 drwxr-xr-x 2 root root 48 Aug 3 13:37 nb3001 ls -lid *3001 332106 drwxr-xr-x 2 root root 48 Aug 3 13:37 nb3001 rmdir nb3001 # AGAIN with plain files: same thing. set -o noclobber ls -lid *3001 ls: *3001: No such file or directory
mm3001 nb3001 bash: line 4: nb3001: cannot overwrite existing file ls -lid mm3001 nb3001 332110 -rw-r--r-- 1 root root 0 Aug 3 13:42 mm3001 332110 -rw-r--r-- 1 root root 0 Aug 3 13:42 nb3001 ls -lid *3001 332110 -rw-r--r-- 1 root root 0 Aug 3 13:42 mm3001 rm nb3001 ls -lid *3001 ls: *3001: No such file or directory
# AGAIN in subdirectory: works as should be. mkdir try; cd try set -o noclobber ls -lid *3001 ls: *3001: No such file or directory
mm3001 nb3001 ls -lid mm3001 nb3001 332109 -rw-r--r-- 1 root root 0 Aug 3 13:43 mm3001 332110 -rw-r--r-- 1 root root 0 Aug 3 13:43 nb3001 ls -lid *3001 332109 -rw-r--r-- 1 root root 0 Aug 3 13:43 mm3001 332110 -rw-r--r-- 1 root root 0 Aug 3 13:43 nb3001 rm nb3001 ls -lid *3001 332109 -rw-r--r-- 1 root root 0 Aug 3 13:43 mm3001 cd ..; rm -r try/