rfs: explicitly cast to dev_t