Oops, ignore that. It seem that this is all I need to cause the error is just this...
int k = open("/dev/sda", O_WRONLY); close(k);
BTW, my root file system is mounted on sda1 while I'm doing this.
(If I open with O_RDONLY instead, then there is no error)
Oops, ignore that.
It seem that this is all I need to cause the error is just this...
int k = open("/dev/sda", O_WRONLY);
close(k);
BTW, my root file system is mounted on sda1 while I'm doing this.
(If I open with O_RDONLY instead, then there is no error)