[Yaffs] mv problem

Sergey Kubushyn ksi at koi8.net
Sun Sep 18 05:09:01 BST 2005


On Fri, 16 Sep 2005, Timofei V. Bondarenko wrote:

Yeah, I've also hit it today, half an hour ago :((

YAFFS1 FS, Linux running off it. No ramdisks, nothing. I can't change
password, passwd gives me "Directory not empty" error. The same error's
given when trying to edit it with BusyBox's vi. Upon bootup mount can not
rewrite /etc/mtab complaining that directory is not empty. What's common to
all those programs is they are all setuid root (vi is a link to setuid
BusyBox). Non-setuid joe works on password file like a charm, no problems
whatsoever. BTW, vi tells me that it wasn't able to rewrite /etc/passwd so
it saved a changed one in a new file, /etc/passwd.edited. Sure enough there
is no such file in /etc...

I don't know what's wrong, it might be just me -- I made an FS image with
mkyaffsimage and put it to NAND with "mkyaffs -e". They both might be buggy
having reached an antique status for being long abandoned so I can't tell
affirmatively that it's YAFFS itself at fault. It's already too late here so
I'm done for today, will try to debug it further on Monday.

And if I hadn't just brutally disabled ALL the YAFFS error messages, I'd
have to get much bigger NAND to store that flood of "**>>ecc error unfixed"
messages in syslog :(( The funniest thing is that /proc/yaffs is shining
with all zeroes in error fields (NAND ECC used)...

Kernel 2.6.12, AT91RM9200 ARM9, yesterdays MTD snapshot, latest (2 month
old, heh?) YAFFS2.


> Hello.
>
> I have a problem with mv command on yaffs filesystem.
>
> linux kernel 2.6.12
> yaffs2 code from current CVS (I use yaffs1)
>
> There are 2 different files /hello and /helly exist.
>
> mv hello helly
>
> Failed: ENOTEMPTY
>
> ls -l
> No hello file present
>
> ls -l hello
> The hello file shown
>
> cat hello
> Content of hello is ok.
> The file helly is left unchaged.
>
> After reboot the hello file disappear completly.
>
> The ENOTEMPTY error reported by yaffs_rename()/yaffs_RenameObject(),
> but I've no idea why.
>
> Any thoughts?
>
> --
> 	Tim.
>
>
> _______________________________________________
> yaffs mailing list
> yaffs at stoneboat.aleph1.co.uk
> http://stoneboat.aleph1.co.uk/cgi-bin/mailman/listinfo/yaffs
>

---
******************************************************************
*  KSI at home    KOI8 Net  < >  The impossible we do immediately.  *
*  Las Vegas   NV, USA   < >  Miracles require 24-hour notice.   *
******************************************************************




More information about the yaffs mailing list