* devices.h (device::get_device): New method.

* fhandler_dev.cc (fhandler_dev::readdir): Set st_ino to device number.
	* syscalls.cc (fhandler_base::stat_fixup): Ditto.  Fix link count for
	CD-ROM devices.  Fix typo in comment.
This commit is contained in:
Corinna Vinschen
2012-04-02 19:25:58 +00:00
parent 467e17b9af
commit eb7729eb36
4 changed files with 17 additions and 5 deletions

View File

@@ -308,6 +308,7 @@ struct device
_minor_t get_minor () const {return d.minor;}
_major_t get_major () const {return d.major;}
_dev_t get_device () const {return d.devn;}
inline operator int& () {return d.devn_int;}
inline operator fh_devices () {return d.devn_fh_devices;}