RISC OS Open
A fast and easily customised operating system for ARM devices
ROOL
Home | News | Downloads | Bugs | Bounties | Forum | Documents | Photos | Contact us
Account

Previous|Next

  • Tickets
  • » Ticket #415

Ticket #415 (Fixed)Sat Oct 31 09:24:50 UTC 2015

FileCore allows dirs bigger than the 4MB limit to be created

Reported by: Sprow (202) Severity: Normal
Part: RISC OS: Module Release:
Milestone: Status Fixed

Details by Sprow (202):

Spec 1309,208/FS defines the largest “big dir” as 4MB, this is BigDirMaxSize in the FileCore sources.

However, if you run the attached test program (which just repeatedly copies randomly named files in a random order) it fails and leaves behind an unrepairable broken dir.

The test program uses 1 byte files to ensure it hits the problem before running out of disc space.

There are two observations:
1. Dir entry insertion gets very slow, presumably because there are too many files to fit in ScratchSpace when SortDir tries to sort the directory (why not use insertion sort, since the dir is already in alphabetical order?)
2. That the 4MB limit doesn’t appear to be being guarded against, or if it is the check is failing. The BigDirCode does try to spot dir full, but for some reason isn’t triggering.

Originally reported by Chris Hall.

Changelog:

Modified by Sprow (202) Sat, October 31 2015 - 18:28:59 GMT

  • Attachment added: FCTest

Test attached

Modified by Sprow (202) Sun, April 09 2017 - 22:18:06 GMT

  • Status changed from Open to Fixed

Fixed in FileCore-3_72.

  • Comment on, or change status of, this ticket

Previous|Next

Search tickets

Social

Follow us on and

ROOL Store

Buy RISC OS Open merchandise here, including SD cards for Raspberry Pi and more.

Donate! Why?

Help ROOL make things happen – please consider donating!

RISC OS IPR

RISC OS is an Open Source operating system owned by RISC OS Developments Ltd and licensed primarily under the Apache 2.0 license.

Options

  • Tickets
  • New ticket
  • Milestones
  • Subversion: Changesets
  • Subversion: Browse
  • CVS: Revisions
  • CVS: Browse
  • Search

RSS feeds Rss

  • Tickets
  • Everything!
  • More feeds...
Site design © RISC OS Open Limited 2018 except where indicated
The RISC OS Open Collaboa theme is distantly based on the Collaboa default layout

Valid XHTML 1.0  |  Valid CSS

Powered by Collaboa
This site runs on Rails

Hosted by Arachsys