Bug#688229: 688229: hack to emulate drive (was: Burning data DVD looks successful but mounting fails with ISOFS: Unable to identify CD-ROM format.)

2012-10-10 Thread Paul Menzel
Dear Thomas and other folks,



Am Sonntag, den 23.09.2012, 16:40 +0200 schrieb Paul Menzel:

 Am Sonntag, den 23.09.2012, 13:03 +0200 schrieb Thomas Schmitt:

[…]

   Is there some way to simulate a burner to find out what happened?
  
  libburn would accept burner addresses like
stdio:/tmp/my_emulated_drive
  which would behave like DVD-RAM or DVD+RW. I.e. quite different
  from DVD-R or DVD+R. Nevertheless such an emulated drive would
  allow to exercise the communications between libisofs and libburn,
  as done by Brasero.
  
  I do not know how to make Brasero use such a drive address.
  Probably one would have to hack its source.
 
 I will take a look.

And I did and came up with the attached patch. So for anyone wanting to
try it if he can reproduce the problems with this also go ahead.

It seems to even emulate the slow writing speed. ;-)

[…]


Thanks,

Paul
From a95089b51414b86466b0a74d1e91ebaf71f5c5d9 Mon Sep 17 00:00:00 2001
From: Paul Menzel paulepan...@users.sourceforge.net
Date: Wed, 10 Oct 2012 11:09:59 +0200
Subject: [PATCH] burn-libburn-common.c: Use std:/tmp/my_emulated_drive

---
 plugins/libburnia/burn-libburn-common.c |2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/plugins/libburnia/burn-libburn-common.c b/plugins/libburnia/burn-libburn-common.c
index 1965b86..ec9ec8b 100644
--- a/plugins/libburnia/burn-libburn-common.c
+++ b/plugins/libburnia/burn-libburn-common.c
@@ -164,7 +164,7 @@ brasero_libburn_common_ctx_new (BraseroJob *job,
 
 	/* we just want to scan the drive proposed by drive */
 	brasero_job_get_device (job, device);
-	res = burn_drive_convert_fs_adr (device, libburn_device);
+	res = burn_drive_convert_fs_adr (stdio:/tmp/my_emulated_drive, libburn_device);
 	g_free (device);
 	if (res = 0) {
 		g_set_error (error,
-- 
1.7.10.4



signature.asc
Description: This is a digitally signed message part


Bug#688229: 688229: hack to emulate drive

2012-10-10 Thread Thomas Schmitt
Hi,

 + res = burn_drive_convert_fs_adr (stdio:/tmp/my_emulated_drive, 
 libburn_device);

Isn't there a quotation mark missing before the comma ?


Have a nice day :)

Thomas


-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



Bug#688229: 688229: hack to emulate drive

2012-10-10 Thread Paul Menzel
Dear Thomas,


Am Mittwoch, den 10.10.2012, 16:56 +0200 schrieb Thomas Schmitt:

  + res = burn_drive_convert_fs_adr (stdio:/tmp/my_emulated_drive, 
  libburn_device);
 
 Isn't there a quotation mark missing before the comma ?

Yes, sorry. Forgot to `git commit -a --amend` that error. Otherwise it
would not have compiled.


Thanks,

Paul
From c47007aa04b37e600c8c21620209cd038ca6b42a Mon Sep 17 00:00:00 2001
From: Paul Menzel paulepan...@users.sourceforge.net
Date: Wed, 10 Oct 2012 11:09:59 +0200
Subject: [PATCH] burn-libburn-common.c: Use std:/tmp/my_emulated_drive

A medium has to be put into the burner though, so that Brasero allows you to press the burn button.
---
 plugins/libburnia/burn-libburn-common.c |2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/plugins/libburnia/burn-libburn-common.c b/plugins/libburnia/burn-libburn-common.c
index 1965b86..11364bd 100644
--- a/plugins/libburnia/burn-libburn-common.c
+++ b/plugins/libburnia/burn-libburn-common.c
@@ -164,7 +164,7 @@ brasero_libburn_common_ctx_new (BraseroJob *job,
 
 	/* we just want to scan the drive proposed by drive */
 	brasero_job_get_device (job, device);
-	res = burn_drive_convert_fs_adr (device, libburn_device);
+	res = burn_drive_convert_fs_adr (stdio:/tmp/my_emulated_drive, libburn_device);
 	g_free (device);
 	if (res = 0) {
 		g_set_error (error,
-- 
1.7.10.4



signature.asc
Description: This is a digitally signed message part