Opened 6 years ago

Last modified 2 years ago

#10057 assigned enhancement

Better error message for copying to read-only folder

Reported by: Kev Owned by: nobody
Priority: low Milestone: Unscheduled
Component: Applications/Tracker Version: R1/Development
Keywords: Cc:
Blocked By: Blocking:
Has a Patch: no Platform: All


On hrev46164, I see that /boot/common/bin is now read-only. However, I was a bit confused at first when I tried to copy a file to it, because the error message implied it wasn't just the folder, but the whole volume: "You can't move or copy items to read-only volumes."

Change History (5)

comment:1 Changed 6 years ago by anevilyak

The error message is actually correct: /boot/system, /boot/common and /boot/home/config are now packagefs mount points, and the packagefs is a read-only filesystem. The only exception is certain folders such as /packages and /non-packaged which it allows to "shine through" from the underlying BFS. As such, when Tracker gets the copy error back from the OS, it is in fact told that a copy to a read-only FS was attempted, and not just a folder.

It'd take a bit of work to specially handle that in the case of a packagefs volume.

comment:2 Changed 6 years ago by Kev

Priority: normallow

Oh, I had no idea. Well, that makes sense. Thanks for the explanation :)

comment:3 Changed 4 years ago by waddlesplash

Platform: x86All
Summary: better error message for copying to read-only folderBetter error message for copying to read-only folder
Type: bugenhancement
Version: R1/Package ManagementR1/Development

comment:4 Changed 4 years ago by waddlesplash

Milestone: R1Unscheduled

Moving Tracker enhancement tickets out of R1 milestone -- Tracker's source code comes from BeOS R5, so it already has all the features it did on R5.

comment:5 Changed 2 years ago by axeld

Owner: changed from axeld to nobody
Status: newassigned
Note: See TracTickets for help on using tickets.