summaryrefslogtreecommitdiffstats
path: root/mount/fsprobe_volumeid.c
Commit message (Collapse)AuthorAgeFilesLines
* mount: move realpath.c code to lib/Karel Zak2009-02-111-1/+0Star
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* mount: fix typo in volume_id codeKarel Zak2009-01-311-2/+2
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* mount: retry on ENOMEDIUMMatthias Koenig2008-07-301-1/+10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Due to a change in kernel behaviour when opening CDROM devices, we need to retry the open/mount call when ENOMEDIUM is returned. Explanation from Tejun Heo: Okay, the difference is from the addition of cdrom_get_media_event() call to both sr_drive_status() and ide_cdrom_drive_status(). Previously, the cdrom driver can't differentiate between tray closed w/ no media and tray open and always returned tray open, which triggers close and retry in the open logic which probably have delayed things enough to get the media recognized. Now the cdrom driver can discern between tray closed w/o media and device not ready for other reasons and returns -ENOMEDIUM on the former. This is all good and dandy but the problem seems that some drives report no media right after the tray is closed but it hasn't properly detected the media yet. It seems the only way to work around the problem is via sensible retries (e.g. try three times 5 secs apart) and I don't think we can add that type of retry logic into cdrom open path. Please note that the previous logic wasn't water proof. Some drives can take longer to recognize the media is there and could have failed the in-kernel retry too. Also, reading the media can take quite some time and during that period the drive reports media present but device not ready. The driver will retry the command (e.g. READ TOC for open) five times but all of them can fail w/ EMEDIUMTYPE. [kzak@redhat.com: - add CRDOM_NOMEDIUM_RETRIES to blkdev.h - add verbose message to mount.c] Signed-off-by: Matthias Koenig <mkoenig@suse.de> Signed-off-by: Karel Zak <kzak@redhat.com>
* mount: cleanup usage of _PATH_*Karel Zak2007-11-281-5/+5
| | | | | | | The macros MOUNTED and MNTTAB are deprecated. This patch standardize and consolidate all path macros and remove mount_paths.h. Signed-off-by: Karel Zak <kzak@redhat.com>
* mount: use blkdev_get_size()Karel Zak2007-11-081-2/+3
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* mount: free loop device on failureSascha Sommer2007-08-271-1/+4
| | | | | | | | | | | Testcase: $ mount -oloop /etc/group /mnt ioctl: LOOP_CLR_FD: Device or resource busy mount: you must specify the filesystem type $ losetup /dev/loop0 /dev/loop0: [0803]:1931929 (/etc/group) Signed-off-by: Matthias Koenig <mkoenig@suse.de>
* mount: use encoded labels for volume_idKay Sievers2007-06-261-10/+19
| | | | | | The current version of libvolume_id exports the encoding function for the symlinks names, so slashes in labels and other chars, that don't really fit into symlink names, will work as expected with LABEL=.
* mount: fsprobe: add libvolume_id supportKarel Zak2007-05-181-0/+123
Signed-off-by: Matthias Koenig <mkoenig@suse.de> Signed-off-by: Kay Sievers <kay.sievers@vrfy.org> Signed-off-by: Karel Zak <kzak@redhat.com>