Skip to contentSkip to conversation

eject: three fixes

PATCH New [email protected] 1 participant 1 message Aug 14, 2014

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 eject: three fixes

From: Morgan Little <[email protected]>

eject-2.1.1-verbose.patch: Kept to help with debugging eject-2.1.5-spaces.patch: help with spaces in the mount path eject-timeout.patch: allow a longer timeout

---
 .../eject/eject/eject-2.1.1-verbose.patch          |   19 ++++++
 .../eject/eject/eject-2.1.5-spaces.patch           |   66 ++++++++++++++++++++
 .../eject/eject/eject-timeout.patch                |   17 +++++
 meta-oe/recipes-support/eject/eject_2.1.5.bb       |    3 +
 4 files changed, 105 insertions(+)
 create mode 100644 meta-oe/recipes-support/eject/eject/eject-2.1.1-verbose.patch
 create mode 100644 meta-oe/recipes-support/eject/eject/eject-2.1.5-spaces.patch
 create mode 100644 meta-oe/recipes-support/eject/eject/eject-timeout.patch
meta-oe/recipes-support/eject/eject/eject-2.1.1-verbose.patch new file +19 -0
new file mode 100644
index 0000000..7403606
@@ -0,0 +1,19 @@
+Kept to help with debugging
+
+Upstream-Status: Pending
+
+Signed-off-by: Morgan Little <[email protected]>
+
+--- eject-2.1.1/eject.c.tn	2005-08-24 11:27:42.000000000 +0200
++++ eject-2.1.1/eject.c	2005-08-24 11:33:05.000000000 +0200
+@@ -638,7 +638,9 @@
+ 	unsigned char sense_buffer[32];
+ 
+ 	if ((ioctl(fd, SG_GET_VERSION_NUM, &k) < 0) || (k < 30000)) {
+-	  printf("not an sg device, or old sg driver\n");
++	  if (v_option) {
++		  printf(_("not an sg device, or old sg driver\n"));
++	  }
+ 	  return 0;
+ 	}
+ 
meta-oe/recipes-support/eject/eject/eject-2.1.5-spaces.patch new file +66 -0

66 lines not on this page · raw message

meta-oe/recipes-support/eject/eject/eject-timeout.patch new file +17 -0
new file mode 100644
index 0000000..de8146f
@@ -0,0 +1,17 @@
+allow a longer timeout
+
+Upstream-Status: Backport 
+
+Signed-off-by: Morgan Little <[email protected]>
+
+--- eject/eject.c.orig	2006-08-07 16:35:15.000000000 +0200
++++ eject/eject.c	2006-08-07 16:35:54.000000000 +0200
+@@ -723,7 +723,7 @@
+ 	io_hdr.dxfer_len = 0;
+ 	io_hdr.dxferp = inqBuff;
+ 	io_hdr.sbp = sense_buffer;
+-	io_hdr.timeout = 2000;
++	io_hdr.timeout = 10000;
+ 
+ 	io_hdr.cmdp = allowRmBlk;
+ 	status = ioctl(fd, SG_IO, (void *)&io_hdr);
meta-oe/recipes-support/eject/eject_2.1.5.bb +3 -0
index 9534577..0440f0c 100644
@@ -7,6 +7,9 @@ inherit autotools gettext update-alternatives
 
 SRC_URI = "http://sources.openembedded.org/${BP}.tar.gz \
            file://eject-2.1.5-error-return.patch \
+           file://eject-2.1.1-verbose.patch \
+           file://eject-2.1.5-spaces.patch \
+           file://eject-timeout.patch \
 "
 
 SRC_URI[md5sum] = "b96a6d4263122f1711db12701d79f738"
Signature · 1 line
1.7.10.4