]> git.sur5r.net Git - bacula/bacula/blobdiff - bacula/src/stored/dev.h
Make cd accept wildcards
[bacula/bacula] / bacula / src / stored / dev.h
index 55b5998346e12011548e0755b6f1f87229825036..d6d1004ee53a223cf418dc6215b9dcdbcd8f4da8 100644 (file)
@@ -1,7 +1,7 @@
 /*
    Bacula® - The Network Backup Solution
 
-   Copyright (C) 2000-2010 Free Software Foundation Europe e.V.
+   Copyright (C) 2000-2012 Free Software Foundation Europe e.V.
 
    The main author of Bacula is Kern Sibbald, with contributions from
    many others, a complete list can be found in the file AUTHORS.
@@ -64,7 +64,6 @@
  *
  */
 
-
 #ifndef __DEV_H
 #define __DEV_H 1
 
@@ -226,6 +225,7 @@ public:
    bthread_mutex_t m_mutex;           /* access control */
    bthread_mutex_t spool_mutex;       /* mutex for updating spool_size */
    bthread_mutex_t acquire_mutex;     /* mutex for acquire code */
+   pthread_mutex_t read_acquire_mutex; /* mutex for acquire read code */
    pthread_cond_t wait;               /* thread wait variable */
    pthread_cond_t wait_next_vol;      /* wait for tape to be mounted */
    pthread_t no_wait_id;              /* this thread must not wait */
@@ -441,7 +441,7 @@ public:
    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);