~ubuntu-branches/ubuntu/wily/brasero/wily

« back to all changes in this revision

Viewing changes to src/scsi-sg.c

  • Committer: Bazaar Package Importer
  • Author(s): Pedro Fragoso
  • Date: 2008-11-18 11:30:50 UTC
  • mfrom: (1.1.13 upstream)
  • Revision ID: james.westby@ubuntu.com-20081118113050-hoy0pi04uv7ww9d8
Tags: 0.8.3-0ubuntu1
* New upstream release (LP: #299411)
  - allow use of remote files
  - drives are now probed asynchronously and may not popup immediatly
    but brasero starts faster
  - some parts of GUI were revisited (in particular the burn
    option dialogs)
  - command line option for video projects (LP: #273140)
  - brasero crashed with SIGSEGV in g_main_context_dispatch()
    (LP: #281599)
  - Brasero main GUI appears after closing the dialog
    when opening an ISO file using Nautilus (LP: #242022)
  - brasero delete original files in VIDEO_TS folder (LP: #280835)
  - brasero crashed with SIGSEGV in 
    brasero_mkisofs_base_write_to_files() (LP: #275312)
  - brasero crashed with SIGSEGV in 
    brasero_project_save_project_as() (LP: #275086)
  - brasero crashed with SIGSEGV in 
    IA__g_sequence_iter_get_sequence() (LP: #282622)
  - brasero crashed with SIGSEGV in brasero_medium_get_drive()
    (LP: #283197)
  - Dialog contains a lot of empty space (LP: #190192)
 * debian/patches/008-add-gettext-domain-to-desktop-file.patch:
   - Dropped, we don't need this anymore
 * debian/control:
  - Add Build-deps on libeel2-dev and libnautilus-extension-dev
 * debian/brasero.install:
  - Install nautilus extension

Show diffs side-by-side

added added

removed removed

Lines of Context:
157
157
 
158
158
BraseroDeviceHandle *
159
159
brasero_device_handle_open (const gchar *path,
 
160
                            gboolean exclusive,
160
161
                            BraseroScsiErrCode *code)
161
162
{
162
163
        int fd;
 
164
        int flags = OPEN_FLAGS;
163
165
        BraseroDeviceHandle *handle;
164
166
 
165
 
        fd = open (path, OPEN_FLAGS);
 
167
        if (exclusive)
 
168
                flags |= O_EXCL;
 
169
 
 
170
        fd = open (path, flags);
166
171
        if (fd < 0) {
167
 
                if (errno == EAGAIN
168
 
                ||  errno == EWOULDBLOCK
169
 
                ||  errno == EBUSY)
170
 
                        *code = BRASERO_SCSI_NOT_READY;
171
 
                else
172
 
                        *code = BRASERO_SCSI_ERRNO;
 
172
                if (code) {
 
173
                        if (errno == EAGAIN
 
174
                        ||  errno == EWOULDBLOCK
 
175
                        ||  errno == EBUSY)
 
176
                                *code = BRASERO_SCSI_NOT_READY;
 
177
                        else
 
178
                                *code = BRASERO_SCSI_ERRNO;
 
179
                }
173
180
 
174
181
                return NULL;
175
182
        }