eject: three fixes
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
Signed-off-by Morgan Little <[email protected]>
Signed-off-by Jackie Huang <[email protected]>
--- .../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
@@ -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
@@ -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
@@ -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