summaryrefslogtreecommitdiff
path: root/extras/volume_id/lib/volume_id.c
AgeCommit message (Collapse)Author
2009-05-12delete libvolume_idKay Sievers
2008-12-09volume_id: support sub-uuid's and plug in btrfs device uuidKay Sievers
2008-11-22update NEWS TODOKay Sievers
2008-11-21volume_id: clear probing result before probing and do not probe a second ↵Kay Sievers
time, if not needed On Thu, Nov 20, 2008 at 14:17, Karel Zak <kzak@redhat.com> wrote: > I see the patch (volume_id_probe_filesystem()) and a few things come > to mind: > > - shouldn't be the relevant parts (label, uuid, version, ...) of > the "struct volume_id" zeroized when you found a signature and > before you call the next probing function? > > - it seems as overkill to use two for()s and probe two times for all > filesystems. What about to store the first result and re-use it? > > - .. or at least never use the second for() when the fist for() found > nothing ;-)
2008-11-13fix spelling in commentKay Sievers
2008-11-13volume_id: fat - accept empty FAT32 fsinfo signatureKay Sievers
2008-11-13volume_id: always check for all filesystem types and skip conflicting resultsKay Sievers
We probe for all known filesystems to find conflicting signatures. If we find multiple matching signatures and one of the detected filesystem types claims that it can not co-exist with any other filesystem type, we do not return a probing result. We can not afford to mount a volume with the wrong filesystem code and possibly corrupt it. Linux ssytems have the problem of dozens of possible filesystem types, and volumes with left-over signatures from former filesystem types. Invalid signature need to be removed from the volume to make the filesystem detection successful. We do not want to read that many bytes from probed floppies, skip volumes smaller than a usual floppy disk.
2008-10-21use more appropriate alternatives to malloc()Alan Jenkins
Use calloc to request cleared memory instead. Kernel and libc conspire to make this more efficient. Also, replace one malloc() + strcpy() with strdup(). Signed-off-by: Alan Jenkins <alan-jenkins@tuffmail.co.uk>
2008-10-03volume_id: use PRIu64i, PRIx64 macrosKay Sievers
2008-10-03volume_id: add btrfsKay Sievers
2008-09-10update file headersKay Sievers
2008-08-29volume_id: remove left-over fd close()Kay Sievers
2008-08-28volume_id: remove deprecated functions and bump major versionKay Sievers
2008-06-11volume_id: support for oracleasmErik van Konijnenburg
2008-05-28volume_id: enable GFS probing code, add LABEL supportKarel Zak
* enables GFS/GFS2 probing code (it's disabled now!) * adds support for LABELs -- it seems that locktable name is usable as a LABEL (at least according to libblkid). * removes extra check of sb_header.mh_format -- nothing in kernel and blkid checks this superblock entry. It seems that check GFS_MAGIC and GFS_METATYPE_SB is enough. Signed-off-by: Karel Zak <kzak@redhat.com>
2008-04-20logging: add trailing newline to all stringsKay Sievers
2008-04-09vol_id: add --offset optionKay Sievers
2008-01-24volume_id: fix typo in function documentationKarel Zak
Signed-off-by: Karel Zak <kzak@redhat.com>
2007-12-17volume_id: also add readable check to probe_all()Kay Sievers
Otherwise probe_all will run two times into a timout, one for the raid, and one for the filesystem probe. Thanks to Tore Anderson for the debugging.
2007-12-16volume_id: run only once into a timeout for unreadable devicesKay Sievers
2007-05-17volume_id: add and export string encoding functionKay Sievers
Needed for mount(8) to lookup LABEL=* in /dev/disk/by-label/*. Characters not suited for a filename will be escaped and the encoded LABEL=* string is able to find the corresponding symlink.
2007-05-15volume_id: add function documentationKay Sievers
2007-05-09volume_id: add remaining names for prober lookup by typeKay Sievers
2007-05-08volume_id: give access to list of all available probersKay Sievers
2007-05-04volume_id: add internal UUID_STRINGKay Sievers
2007-05-03volume_id: add volume_id_get_* functionsKay Sievers
In a future version of libvolume_id, struct volume_id will be an opaque data type, which can't be accessed directly. No interface has changed for now, until all known users are converted not to access the structure directly.
2006-07-25libvolume_id: add parameter 'size' to all probe functionsKay Sievers
2006-07-13vol_id: add --skip-raid and --probe-all optionKay Sievers
2006-05-30libvolume_id: gfs + gfs2 supportKay Sievers
Patch from Red Hat.
2006-05-15libvolume_id: add more software raid signaturesKay Sievers
2006-05-13libvolume_id: fat - check for signature at end of sectorKay Sievers
2006-05-09vol_id: add NetWare volume detectionKay Sievers
2006-04-28vol_id: fix logging from libvolume_id's log functionKay Sievers
2006-03-28volume_id: define exported symbolsKay Sievers
2006-03-27because is better than causeKay Sievers
2006-03-27volume_id: rename subdirectoryKay Sievers