* each physical device. Everything here is "global" to
* that device and effects all jobs using the device.
*/
-class DEVICE {
+class DEVICE: public SMARTALLOC {
protected:
int m_fd; /* file descriptor */
private:
int fd() const { return m_fd; };
/* low level operations */
- virtual int d_ioctl(int fd, ioctl_req_t request, char *mt_com);
+ virtual int d_ioctl(int fd, ioctl_req_t request, char *mt_com=NULL);
virtual int d_open(const char *pathname, int flags);
virtual int d_close(int fd);
virtual ssize_t d_read(int fd, void *buffer, size_t count);