If I was to debug a service on a machine and I determined that a write was failing, how could I check why the write failed?
I know the system call in C will return -1 and then we can check what constant int errno contains (EINVAL,etc.). However, if I'm not able to check this how would I go about checking the cause of the error? Would dmesg show an error at the block device level for me in this case?