summaryrefslogtreecommitdiffstats
path: root/sys/geom/uzip
Commit message (Collapse)AuthorAgeFilesLines
* Fix the build with DEBUG enabled. Where possible, fix style(9) issues.loos2014-02-071-24/+27
| | | | | Reviewed by: bde Approved by: adrian (mentor)
* Remove unneeded G_PF_CANDELETE flag.ed2012-08-281-1/+0
| | | | | This flag is only used by GEOM so it can be propagated to the character device's SI_CANDELETE. Unfortunately, SI_CANDELETE seems to do nothing.
* Fix orphan() methods of several GEOM classes to not assume that theretrasz2012-07-071-3/+1
| | | | | | | | | is an error set on the provider. With GEOM resizing, class can become orphaned when it doesn't implement resize() method and the provider size decreases. Reviewed by: mav Sponsored by: FreeBSD Foundation
* Mark MALLOC_DEFINEs static that have no corresponding MALLOC_DECLAREs.ed2011-11-071-1/+1
| | | | This means that their use is restricted to a single C file.
* Add some FEATURE macros for various GEOM classes.netchild2011-02-251-0/+3
| | | | | | | | | | | No FreeBSD version bump, the userland application to query the features will be committed last and can serve as an indication of the availablility if needed. Sponsored by: Google Summer of Code 2010 Submitted by: kibab Reviewed by: silence on geom@ during 2 weeks X-MFC after: to be determined in last commit with code from this project
* Change the way in which zero stripesize is handled. Instead of reportingmav2010-01-061-4/+2
| | | | | | | | | zero stripeoffset in such case (as if device has no stripes), report offset from the beginning of the media (as if device has single infinite stripe). This gives partitioning tools information, required to guess better partition alignment, in case if hardware doesn't report it's stripe size. For example, it should give disklabel info about odd offset made by fdisk.
* If provider is open for writing when we taste it, skip it for classes thatpjd2009-10-091-0/+5
| | | | | | | | | | | | | | | | | | | | depend on on-disk metadata. This was we won't attach to providers that are used by other classes. For example we don't want to configure partitions on da0 if it is part of gmirror, what we really want is partitions on mirror/foo. During regular work it works like this: if provider is open for writing a class receives the spoiled event from GEOM and detaches, once provider is closed the taste event is send again and class can rediscover its metadata if it is still there. This doesn't work that way when new class arrives, because GEOM gives all existing providers for it to taste, also those open for writing. Classes have to decided on their own if they want to deal with such providers (eg. geom_dev) or not (classes modified by this commit). Reported by: des, Oliver Lehmann <lehmann@ans-netz.de> Tested by: des, Oliver Lehmann <lehmann@ans-netz.de> Discussed with: phk, marcel Reviewed by: marcel MFC after: 3 days
* If compressed length is zero, return a zero-filled block.simokawa2007-04-241-0/+7
| | | | MFC after: 1 week
* Fix a bug for over 4GB media.simokawa2007-04-071-1/+1
| | | | MFC after: 3 days
* Rename geom_uzip class to g_uzip in order to be consistent with the namingfjoe2006-01-221-2/+2
| | | | | | of other GEOM modules. PR: 89998
* Fix bio leak in case of malloc(9) failure.pjd2006-01-181-0/+1
| | | | | | Found by: Coverity Prevent(tm) Coverity ID: CID794 MFC after: 3 days
* Don't pass error value pointer to g_read_data(9) at all if we don'tsobomax2005-11-301-2/+2
| | | | | | have any use of it. Suggested by: pjd
* Check for g_read_data(9) errors properly:sobomax2005-11-301-2/+2
| | | | | | | | | | o The only indication of error condition is NULL value returned by the function; o value pointed to by error argument is undefined in the case when operation completes successfully. Discussed with: phk
* Normalize a significant number of kernel malloc type names:rwatson2005-10-311-1/+1
| | | | | | | | | | | | | | | | | | | - Prefer '_' to ' ', as it results in more easily parsed results in memory monitoring tools such as vmstat. - Remove punctuation that is incompatible with using memory type names as file names, such as '/' characters. - Disambiguate some collisions by adding subsystem prefixes to some memory types. - Generally prefer lower case to upper case. - If the same type is defined in multiple architecture directories, attempt to use the same name in additional cases. Not all instances were caught in this change, so more work is required to finish this conversion. Similar changes are required for UMA zone names.
* - Fix "end_blk out of range" panic when INVARIANTS.fjoe2005-09-291-2/+5
| | | | | | | - Do not allow rw access. Submitted by: Dario Freni <saturnero at freesbie dot org> MFC after: 3 days
* Use M_ZERO to not panic in mtx_init when INVARIANTS enabled.fjoe2004-11-201-1/+1
| | | | | Submitted by: simokawa MFC after: 1 week
* Use correct malloc type when freeing memory allocated by g_read_data.fjoe2004-09-191-2/+2
| | | | | PR: 71431 Submitted by: daichi
* Do not compile in zlib.c. Add a dependency on module instead.fjoe2004-09-081-1/+2
|
* Add geom_uzip -- geom class that implements read-only compressed disks.fjoe2004-08-131-0/+521
Currently supports cloop V2.0 disk compression format. May support more formats in future.
OpenPOWER on IntegriCloud