[Yaffs] Permission reset on device file while yaffs remount

Top Page
Attachments:
Message as email
+ (text/plain)
+ (text/html)
Delete this message
Reply to this message
Author: Xin Li
Date:  
To: yaffs
Subject: [Yaffs] Permission reset on device file while yaffs remount
Good morning,everyone:
         I recently found a bug:  Permission reset on device file while
yaffs remount ;The steps as following:


I boot system via NFS , Steps as following:
root@DEMO@XGD /mnt$ mount -t yaffs /dev/mtdblock6 /mnt/src

root@DEMO@XGD /mnt/src$ ls fd  -al
crw-rw----    1 root     root      29,   0 Mar 25 23:50 fd


root@DEMO@XGD /mnt/src$ chown usr1:usr1 fd

root@DEMO@XGD /mnt/src$ ls fd -al
crw-rw----    1 usr1    usr1     29,   0 Mar 25 23:50 fd


root@DEMO@XGD /mnt/src$ cd ..

root@DEMO@XGD /mnt$ umount src

root@DEMO@XGD /mnt$ mount -t yaffs /dev/mtdblock6 /mnt/src
[ 1785.250000] yaffs: dev is 32505862 name is "mtdblock6"
[ 1785.260000] yaffs: passed flags ""
[ 1785.260000] yaffs: Attempting MTD mount on 31.6, "mtdblock6"
[ 1785.270000] yaffs: auto selecting yaffs2
[ 1785.400000] yaffs: restored from checkpoint
[ 1785.410000] yaffs_read_super: isCheckpointed 1

root@DEMO@XGD /mnt$ ls src/fd -al
crw-rw----    1 root     root      29,   0 Mar 25 23:50 src/fd


                   I cloned the latest source file(git clone git://
www.aleph1.co.uk/yaffs2) , Result no change.



Thank you, and regards,
Steven Lee