~mfisch/brasero/update-to-3.8.0

« back to all changes in this revision

Viewing changes to libbrasero-media/scsi-uscsi.c

  • Committer: Bazaar Package Importer
  • Author(s): Andreas Moog
  • Date: 2009-07-28 01:12:27 UTC
  • mto: (1.4.1 experimental)
  • mto: This revision was merged to the branch mainline in revision 46.
  • Revision ID: james.westby@ubuntu.com-20090728011227-tiva9yorc5d1r5hs
Tags: upstream-2.27.5
ImportĀ upstreamĀ versionĀ 2.27.5

Show diffs side-by-side

added added

removed removed

Lines of Context:
203
203
        int fd;
204
204
        int flags = OPEN_FLAGS;
205
205
        BraseroDeviceHandle *handle;
 
206
        gchar *rawdisk = NULL;
206
207
 
207
208
/*      if (exclusive) */
208
209
/*              flags |= O_EXCL; */
209
210
 
210
 
        if (g_str_has_prefix(path, "/dev/dsk/")) {
211
 
                gchar *rawdisk;
212
 
                rawdisk = g_strdup_printf ("/dev/rdsk/%s", path + 9);
213
 
                fd = open (rawdisk, flags);
214
 
                g_free(rawdisk);
215
 
        } else {
216
 
                fd = open (path, flags);
217
 
        }
218
 
 
 
211
        fd = open (path, flags);
219
212
        if (fd < 0) {
220
213
                if (code) {
221
214
                        if (errno == EAGAIN
243
236
        g_free (handle);
244
237
}
245
238
 
246
 
char *
247
 
brasero_device_get_bus_target_lun (const gchar *device)
248
 
{
249
 
        return strdup (device);
250
 
}