summaryrefslogtreecommitdiff
path: root/extras/cdrom_id
AgeCommit message (Collapse)Author
2010-04-12cdrom_id: always set ID_CDROM regardless if we can run cdrom_idKay Sievers
2010-04-07cdrom_id: check mount state in retry loopKay Sievers
Based on a patch from Harald Hoyer.
2010-04-07cdrom_id: retry to open the device, if EBUSYKay Sievers
We might fight about the device with polling processes, or other users who probe the device. Retry a few times if the other one goes away in the meantime. Based on a patch from Harald Hoyer.
2010-04-07cdrom_id: remove debugging codeHarald Hoyer
2010-03-18cdrom_id: open non-mounted optical media with O_EXCLKay Sievers
This should prevent confusing drives during CD burning sessions. Based on a patch from Harald Hoyer.
2009-12-15cdrom_id: remove deprecated device matchesKay Sievers
2009-11-10cdrom_id: Still check profiles even if there is no mediaDavid Zeuthen
Even when there is no medium in the drive, we should still check the profiles supported by the drive. Otherwise we fail to detect things like Blu-ray drives. See https://bugzilla.gnome.org/show_bug.cgi?id=600273 for more information. Signed-off-by: David Zeuthen <davidz@redhat.com>
2009-08-08fix spellingAlan Jenkins
Fix spelling in docbook comments, code comments, and a local variable name. Thanks to "ispell -h" for docbook HTML and "scspell" for source code. Signed-off-by: Alan Jenkins <alan-jenkins@tuffmail.co.uk>
2009-08-07Merge libudev, udev, and the unconditional extras in a single Makefile.am.Diego Elio 'Flameeyes' Pettenò
Instead of using multiple recursive Makefile.am files, use a single Makefile.am that sets and builds all the basic suite of libraries and binaries for udev. This reduces the number of files in the source tree, and also reduces drastically the build time when using parallel-make. With this setup, all the compile steps will be executed in parallel, and just the linking stage will be (partially) serialised on the libraries creation.
2009-07-25make: build internal tools against libudev-private.laKay Sievers
2009-06-17extras: delete man pages for private udev toolsKay Sievers
These are mostly dummy man pages, without real content, some even outdated. None of these tools are part of any offered public interface, and they should not pretend to be by offering a man page.
2009-06-17cleanup ./configure installation directory optionsKay Sievers
2009-06-09move syslog wrapper to libudevKay Sievers
2009-06-08libudev: move to top-level directoryKay Sievers
2009-05-29cdrom_id: add error message if open() failsKay Sievers
2009-05-26cdrom_id: suppress ID_CDROM_MEDIA_STATE=blank for plain non-writable CDROM mediaKay Sievers
Some broken fake cdrom drives return ID_CDROM_MEDIA_STATE=blank. $ /lib/udev/cdrom_id -d /dev/sr1 main: probing: '/dev/sr1' cd_inquiry: INQUIRY: [Nokia ][S60 ][1.0 ] cd_profiles: GET CONFIGURATION: number of profiles 76 cd_profiles: current profile 0x08 cd_media_toc: READ TOC: len: 12 cd_media_toc: last track 1 starts at block 0 cd_media_info: disk type 00 ID_CDROM=1 ID_CDROM_MRW=1 ID_CDROM_MRW_W=1 ID_CDROM_MEDIA=1 ID_CDROM_MEDIA_CD=1 ID_CDROM_MEDIA_STATE=blank Others work fine, but ID_CDROM_MEDIA_STATE is not needed for non-writable CDROM media: $ /lib/udev/cdrom_id -d /dev/sr1 main: probing: '/dev/sr1' cd_inquiry: INQUIRY: [SanDisk ][U3 Cruzer Micro ][8.02] cd_profiles: GET CONFIGURATION: number of profiles 72 cd_profiles: current profile 0x08 cd_media_toc: READ TOC: len: 20 cd_media_toc: track=1 info=0x4(data) start_block=0 cd_media_toc: last track 1 starts at block 0 cd_media_info: disk type 00 ID_CDROM=1 ID_CDROM_MRW=1 ID_CDROM_MRW_W=1 ID_CDROM_MEDIA=1 ID_CDROM_MEDIA_CD=1 ID_CDROM_MEDIA_STATE=complete ID_CDROM_MEDIA_SESSION_COUNT=1 ID_CDROM_MEDIA_TRACK_COUNT=1 ID_CDROM_MEDIA_TRACK_COUNT_DATA=1
2009-04-23cdrom_id: skip media tests if CDROM_DRIVE_STATUS != CDS_DISC_OKKay Sievers
2009-04-21cdrom_id: add and use ID_CDROM_MEDIA to decide if we run vol_idKay Sievers
Some broken mobile phones offer a faked cdrom drive with a media without any tracks.
2009-04-17cdrom_id: add Xen cdrom supportKay Sievers
2009-03-16cdrom_id: update manpageAdam Buchbinder
Include usage information on the -d/--debug flag. Also bump the date. Signed-off-by: Adam Buchbinder <adam.buchbinder@gmail.com>
2008-12-06make: do not delete autotools generated file with distcleanKay Sievers
[...] running the command `make maintainer-clean' should not delete `configure' even if `configure' can be remade using a rule in the Makefile. More generally, `make maintainer-clean' should not delete anything that needs to exist in order to run `configure' and then begin to build the program. This is the only exception; `maintainer-clean' should delete everything else that can be rebuilt.
2008-10-21cdrom_id: remove ARRAY_SIZE() declarationKay Sievers
2008-10-16libudev: add global property listKay Sievers
2008-10-02libudev: get rid of selinuxKay Sievers
"Hello world!" linked against libselinux parses /proc/mounts and whatever else on startup, even when the lib is not needed at all. Not funny! Get rid of that thing where it's not absolutely needed.
2008-10-02use no_argument, required_argument, optional_argument in longoptsKay Sievers
2008-09-19always include config.h from MakefileKay Sievers
2008-09-10extras: use libudev codeKay Sievers
2008-09-10libudev: rename libudev-utils.c libudev-util.cKay Sievers
2008-09-10libudev: get rid of udev_utils.cKay Sievers
2008-09-10libudev: get rid of udev_sysfs.cKay Sievers
2008-09-10update file headersKay Sievers
2008-09-10libudev: add selinuxKay Sievers
2008-09-06use libudev code, unify logging, pass udev context around everywhereKay Sievers
2008-08-22vol_id: make the --offset= argument optionalKay Sievers
2008-07-30use autotoolsKay Sievers
2008-07-30delete all Makefiles and move udev source to udev/Kay Sievers
2008-07-18move default rules from /etc/udev/rules.d/ to /lib/udev/rules.d/Kay Sievers
None of these rules is supposed to be changed by users, so move them out of /etc. Custom rules, and automatically generated rules stay in /etc. All rules are still processed in lexical order, regardless which directory they live in.
2008-06-12cdrom_id: fix recognition of blank mediaKay Sievers
Thanks to David!
2008-06-11cdrom_id: export ID_CDROM_MEDIA_TRACK_COUNT_AUDIO=, ↵Kay Sievers
ID_CDROM_MEDIA_TRACK_COUNT_DATA= Iterate over all tracks, instead of looking only at the first one for audio. Thanks to David!
2008-05-14cdrom_id: fix segfaultMatthias Schwarzott
2008-04-21cdrom_id: add more help textKay Sievers
2008-04-20logging: add trailing newline to all stringsKay Sievers
2008-04-09cdrom_id: replace with version which also exports media propertiesKay Sievers
This is a 12 track audio CD with additional data session: $ extras/cdrom_id/cdrom_id /dev/dvd ID_CDROM=1 ID_CDROM_CD_R=1 ID_CDROM_CD_RW=1 ID_CDROM_DVD=1 ID_CDROM_DVD_R=1 ID_CDROM_DVD_RW=1 ID_CDROM_DVD_RAM=1 ID_CDROM_DVD_PLUS_R=1 ID_CDROM_DVD_PLUS_RW=1 ID_CDROM_DVD_PLUS_R_DL=1 ID_CDROM_MEDIA_CD=1 ID_CDROM_MEDIA_STATE=complete ID_CDROM_MEDIA_HAS_AUDIO=1 ID_CDROM_MEDIA_SESSION_COUNT=2 ID_CDROM_MEDIA_TRACK_COUNT=13 ID_CDROM_MEDIA_SESSION_LAST_OFFSET=444508160
2008-03-15Makefile: do not require GNU installRoy Marples
2007-11-08extras: ignore built and generated filesDan Nicholson
2007-01-21fix INSTALL_PROGRAM vs. INSTALL_SCRIPTPeter Breitenlohner
2006-09-05cdrom_id: add rules file to call cdrom_idKay Sievers
2006-07-04Makefiles: fix .PHONY for man page targetKay Sievers
Thanks to David Härdeman for pointing it out.
2006-03-29move all *_id programs to /lib/udev/Kay Sievers
2006-03-28man pages: mention udev(7) not udev(8)Kay Sievers
Thanks to: Henrique de Moraes Holschuh <hmh@debian.org>