This reverts commit
2c2ab0446f99e9b6f7cae69d99b4491fdf60e6f3.
It was causing the read/write remount of the root filesystem
to fail upon booting. I'll investigate a better fix.
Reported-by: Rumko <rumcic@gmail.com>
Dragonfly-bug: <http://bugs.dragonflybsd.org/issue1973>
dev->si_dict = NULL;
dev->si_ops = ops;
dev->si_flags = 0;
+ dev->si_umajor = 0;
dev->si_uminor = minor;
dev->si_bops = bops;
/* If there is a backing device, we reference its ops */
- dev->si_umajor = devfs_reference_ops((bops)?(bops):(ops));
- dev->si_inode = makeudev(dev->si_umajor, minor);
+ dev->si_inode = makeudev(
+ devfs_reference_ops((bops)?(bops):(ops)),
+ minor );
return dev;
}