dev builds
themes manual
device status forums
mailing lists
IRC bugs
dev guide

Rockbox mail archive

Subject: Re: Handling of read-only storage: feeback wanted

Re: Handling of read-only storage: feeback wanted

From: Björn Stenberg <>
Date: Mon, 6 May 2013 12:04:35 +0200

Amaury Pouly wrote:
> A simple solution would
> be to prevent opening opening a file for writing for example.

Gracefully handling read-only media requires at least a thorough review of the relevant file-writing code paths to ensure failure to write shows a (single) sensible message to the user and fails in a sane way.

It's probably even better to have a media flag that the code can check to completely avoid going into those code paths. If a user has the media write protected by choice, she will not want to be annoyed by error messages about it.

Received on 2013-05-06

Page template was last modified "Tue Sep 7 00:00:02 2021" The Rockbox Crew -- Privacy Policy