My first bug fix was about a year ago. You can see bug report here: http://bugs.mysql.com/bug.php?id=72259
If to shortly explain, so problem was that when you make file system read only, and try to start the server, it fails. And there is no exact error message in the log files which explains the problem correctly.
I added to the sql/mysqld.cc file a simple function whitch checks the given path’s permission and returns the state code:
// checks if file system is read-only
int is_filesystem_read_only(char const* name) {
if (access(name, W_OK) == -1) {
if (access(name, R_OK) == 0) {
return R_OK; // read only
} else if (access(name, F_OK) == 0) {
…
[Read more]