Discussion about preventing recordings when the journal is "near full" can be read here:<br><a href="https://dev.laptop.org/ticket/4983">https://dev.laptop.org/ticket/4983</a><br><br><div>Related ticket:<br></div>
<div><a href="https://dev.laptop.org/ticket/5169">https://dev.laptop.org/ticket/5169</a><br><br>I am not sure if there is a suggested Sugar api call nowadays to determine if there is "enough space". It would be great if there was. We want to be sure to to pay attention to JG's warning (from #4983):</div>
<br><blockquote class="webkit-indent-blockquote" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 40px; border-top-style: none; border-right-style: none; border-bottom-style: none; border-left-style: none; border-width: initial; border-color: initial; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; ">
<span class="Apple-style-span" style="font-style: italic; ">Please, have oggenc fail significantly *before* filling flash. Similarly for the camera app itself. The system has to work harder and harder on GC as the free space drops.<br>
<br></span></blockquote><div>You can adjust the threshold in Record by changing the variable keepFreeKbOnXo in constants.py<br><br><br>On Sun, Dec 14, 2008 at 4:04 AM, Bill Kerr <<a href="mailto:billkerr@gmail.com">billkerr@gmail.com</a>> wrote:<br>
><br>> Build 767<br>> Sugar 0.82.1<br>> Firmware Q2E18<br>><br>> control panel > software updates<br>> "Your software is up-to-date"<br>><br>> When I open Record there is a message there, "Your Journal is full" and I can't take a photo - there is a cross on the Button, tried clicking the button anyway and nothing happened<br>
><br>> at any rate I haven't been saving much at all, mainly just looking at activities and playing around learning linux<br>><br>> df -h<br>> 118M free, 89% Use<br>><br>> i went here<br>><br>> <a href="http://wiki.laptop.org/go/Journal_Activity">http://wiki.laptop.org/go/Journal_Activity</a><br>
><br>> and then follow the path to /home/olpc/.sugar/default/datastore/store<br>><br>> and deleted many files in there with rm *<br>> (the *.metadata files are protected and I kept them)<br>><br>> I also deleted many files out of the preview subfolder<br>
> I didn't touch the index subfolder<br>><br>> then rebooted<br>><br>> Nothing appeared to change!<br>> Still had some old entries in the journal, some 4 weeks old (I was expecting that it would now be clear)<br>
> Still had the same result from df -h as above (I think, at any rate I have space available)<br>><br>> When I open Record there is still a message there, "Your Journal is full" and I can't take a photo<br>
><br>> seems to me that managing the journal is slow through the Sugar GUI, culling items one by one, would like to see a process to delete multiple items quickly<br>><br>> pity about this -- from <a href="http://wiki.laptop.org/go/Journal_Activity">http://wiki.laptop.org/go/Journal_Activity</a> -- about the files being heavily hashed<br>
><br>> Files can be copied to and from the Journal's datastore using the Terminal Activity. However, filenames are heavily hashed, meaning "myfile.bzip" might show up as 2637-4737-13323-dl77nf, or some such gibberish. Here's how to figure it out.<br>
><br>> Note how large the file is (or what time it is.)<br>> Download it. (Click on the link while you're in Browse.)<br>> Open Terminal Activity.<br>> At the prompt, type cd .sugar/default/datastore/store/ to get into your datastore directory.<br>
> Then type ls -la and look for the file with the size and timestamp you noted before.<br>> Do whatever you want with your file (rename, move, whatever...)<br>><br>> _______________________________________________<br>
> Sugar-devel mailing list<br>> <a href="mailto:Sugar-devel@lists.sugarlabs.org">Sugar-devel@lists.sugarlabs.org</a><br>> <a href="http://lists.sugarlabs.org/listinfo/sugar-devel">http://lists.sugarlabs.org/listinfo/sugar-devel</a><br>
><br><br><br><br></div>