[prev in list] [next in list] [prev in thread] [next in thread] 

List:       yaffs
Subject:    Re: [Yaffs] can GC happen on a file system mounted RO?
From:       Charles Manning <cdhmanning () gmail ! com>
Date:       2014-10-28 18:08:01
Message-ID: CAE21AQqExniNyhmkEZGua78WmcqhOUuWP3mTxUVBhrMn18Xtqg () mail ! gmail ! com
[Download RAW message or body]

[Attachment #2 (multipart/alternative)]


Yes you absolutely can call gc at any time when the Yaffs file system is
mounted, so long as all the locking is done safely.

This is done through the background gc mechanism.

Yaffs under Linux has this running as a default.

Under Yaffs Direct there's a function

int yaffs_do_background_gc(const YCHAR *path, int urgency);
that does this.

This needs to be called periodically (eg. in a gc thread).

-- Charles




On Tue, Oct 28, 2014 at 6:57 AM, <Chris.Gofforth@corp.rockwellcollins.com>
wrote:

> Related to the  bit flip/ read disturb errors on MLC flash. It is
> recommended to cause a GC to occur on that block. GC is checked during
> writes, but on a Read Only File System this will not happen.
> Can We just call the GC function on a periodic bases, even if the file
> system is mounted RO?
>
> Thanks
>
> Chris G
>
>
>
>
>
> _______________________________________________
> yaffs mailing list
> yaffs@lists.aleph1.co.uk
> http://lists.aleph1.co.uk/cgi-bin/mailman/listinfo/yaffs
>
>

[Attachment #5 (text/html)]

<div dir="ltr"><div><div>Yes you absolutely can call gc at any time when the Yaffs \
file system is mounted, so long as all the locking is done safely.<br><br>This is \
done through the background gc mechanism.<br><br></div>Yaffs under Linux has this \
running as a default.<br><br></div><div>Under Yaffs Direct there&#39;s a \
function<br><br>int yaffs_do_background_gc(const YCHAR *path, int \
urgency);<br></div><div>that does this.<br><br></div><div>This needs to be called \
periodically (eg. in a gc thread).<br><br></div><div>-- \
Charles<br><br></div><br><div><div><div><br></div></div></div></div><div \
class="gmail_extra"><br><div class="gmail_quote">On Tue, Oct 28, 2014 at 6:57 AM,  \
<span dir="ltr">&lt;<a href="mailto:Chris.Gofforth@corp.rockwellcollins.com" \
target="_blank">Chris.Gofforth@corp.rockwellcollins.com</a>&gt;</span> \
wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px \
#ccc solid;padding-left:1ex"><font face="sans-serif">Related to the   bit flip/ read \
disturb errors on MLC flash. It is recommended to cause a GC to occur on that block.
GC is checked during writes, but on a Read Only File System this will not
happen.</font>
<br><font face="sans-serif">Can We just call the GC function on
a periodic bases, even if the file system is mounted RO?</font>
<br>
<br><font face="sans-serif">Thanks</font>
<br>
<br><font face="sans-serif">Chris G</font>
<br>
<br>
<br>
<br><font face="sans-serif"><br>
</font><br>_______________________________________________<br>
yaffs mailing list<br>
<a href="mailto:yaffs@lists.aleph1.co.uk">yaffs@lists.aleph1.co.uk</a><br>
<a href="http://lists.aleph1.co.uk/cgi-bin/mailman/listinfo/yaffs" \
target="_blank">http://lists.aleph1.co.uk/cgi-bin/mailman/listinfo/yaffs</a><br> \
<br></blockquote></div><br></div>



_______________________________________________
yaffs mailing list
yaffs@lists.aleph1.co.uk
http://lists.aleph1.co.uk/cgi-bin/mailman/listinfo/yaffs


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic