summaryrefslogtreecommitdiffstats
path: root/lib/libdisk/Makefile
Commit message (Collapse)AuthorAgeFilesLines
* With the old sade removed, libdisk is no longer used by anything in HEADnwhitehorn2012-12-301-43/+0
| | | | | and uses a number of problematic pre-gpart interfaces. Since it has been entirely obsoleted by interfaces in geom, remove it.
* Disconnect sun4v architecture from the three.attilio2011-05-141-4/+0
| | | | | | | | | Some files keep the SUN4V tags as a code reference, for the future, if any rewamped sun4v support wants to be added again. Reviewed by: marius Tested by: sbruno Approved by: re
* MFtbemd:imp2010-08-231-1/+1
| | | | | Prefer MACHNE_CPUARCH to MACHINE_ARCH in most contexts where you want to test of all the CPUs of a given family conform.
* unbreak build for sparc64 etc.kmacy2006-10-091-1/+1
| | | | | | | TARGET won't be defined on non subarches Approved by: rwatson (mentor) Reviewed by: jmg
* buildworld fixes for sun4vkmacy2006-10-091-1/+7
| | | | | | | not sure why pmap.c is included as it is unchanged Approved by: rwatson (mentor) Reviewed by: jmg
* Revert 1.45 now that snmp_hostres uses libgeom.harti2006-01-271-0/+1
|
* Build shared library on behalf of bsnmpd.ru2006-01-121-1/+0
|
* NODOCCOMPRESS -> NO_DOCCOMPRESSru2004-12-211-2/+2
| | | | | | | | NOINFO -> NO_INFO NOINFOCOMPRESS -> NO_INFOCOMPRESS NOLINT -> NO_LINT NOPIC -> NO_PIC NOPROFILE -> NO_PROFILE
* For variables that are only checked with defined(), don't provideru2004-10-241-2/+2
| | | | any fake value.
* Down to WARNS=2 for a while.kuriyama2004-03-301-1/+1
|
* Make libdisk WARNS=4 clean.kuriyama2004-03-301-1/+1
| | | | Glanced by: jhb
* style.Makefile:johan2004-02-231-1/+1
| | | | Use WARNS?= instead of WARNS=.
* o Move Int_Open_Disk() from disk.c to open_disk.c for use by allmarcel2003-11-021-2/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | platforms except ia64 and use Int_Open_Disk() in open_ia64_disk.c on ia64. We need to know more than GEOM can provide us so we're forced to read from the disk. Move uuid_type() to open_ia64_disk.c and remove all references on non-ia64. o Pass the GEOM conftxt to Int_Open_Disk() so that only Open_Disk() needs to know about GEOM and libdisk can more easily be used with media not handled by GEOM. o Create an ia64 specific definiton of struct disk on ia64, because we don't need/have most of the fields other platforms need and other fields not applicable on platforms other than ia64. o Do not compile change.c on ia64. It's too PC specific. o In Fixup_Names() in create_chunk.c, try all partition numbers that are valid for the GPT disk. We have the total number of partitions that can be allocated in the disk structure on ia64. Also, use the GPT partition naming if we're creating one under a chunk of type "whole". It's a GPT partition in that case. o In Create_Chunk(), compile-out the PC specific code on ia64 that checks BIOS geometry restrictions. o In Debug_Disk() in disk.c, dump the ia64 specific fields. o Save the partition index in the chunk on ia64 so that we can preserve it when we write the data back to disk. This avoids that partitions get moved around or swapped after installing FreeBSD, which may render a disk unusable.
* Update libdisk to use the explicing encoding function for sunlabel dataphk2003-04-211-0/+2
| | | | structures.
* Use ${MACHINE} variable instead of using '.if .endif' each machines.nyan2002-10-311-18/+1
|
* Since make release is toast anyway, add wood to the pyre:phk2002-10-291-0/+13
| | | | | | | | | | | | | | This significantly rewamps libdisks discovery of existing disk layout. Please send me reports if this does not work as expected on i386 or sparc64 platforms. I need to sort out alpha, pc98 and ia64 (in that order) before testing on those platforms make a lot of sense. Belived to work for: i386 sparc64 Unknown state: pc98 alpha ia64
* Add back ia64 support that was removed in the last few revisions.peter2002-10-271-1/+5
| | | | I've cloned write_ia64_disk.c from write_i386_disk.c.
* Remove unnecessary ioctls tickling kernel side to realize that we fiddledphk2002-10-231-0/+1
| | | | with the disk. GEOM will automatically retaste when we closet he filedesc.
* Untangle #ifdefs in the write-end of things by giving each arch itsphk2002-10-231-1/+11
| | | | | | | own file and own copy of WriteDisk() to do things in. This should have happened years ago, instead of adding #ifdefs all over the place.
* Swing the weed-whacker around libdisk:phk2002-10-221-28/+1
| | | | | | | | | Constify some things. Staticize some things. Remove some unused things. Prototype some things. Don't install a gazillion man-pages links. Drop support for ON-TRACK disk-manager.
* NOSHARED is meaningless in the bsd.lib.mk context.ru2002-05-131-1/+0
|
* MAN[1-9] -> MAN.ru2001-03-271-1/+1
|
* Turn dkcksum() into an __inline function.phk2000-09-161-2/+1
| | | | Change its type to u_int_16_t.
* Changes for PC-98.kato2000-03-291-0/+3
|
* Replace beforeinstall target with new variables used by .mk system.rgrimes2000-01-141-5/+1
| | | | Reviewed by: marcel, and make world
* $Id$ -> $FreeBSD$peter1999-08-281-1/+1
|
* Eliminate all dependence on boot1 and boot2. This is passed in byjkh1998-12-311-19/+3
| | | | | | Set_Boot_Blocks() anyway and should thus have never been a part of libdisk, it should have been provided by the client of libdisk since passing the information in is already part of the API.
* Transition libdisk to use /boot since what it's looking for (boot1 and boot2)jkh1998-12-301-2/+2
| | | | are now there.
* Backed out previous commit. It depends on a.out utilities and librariesbde1998-12-301-2/+2
| | | | somehow being available even on pure elf systems.
* Fixed bootstrapping of /usr/mdec/boot[12].bde1998-12-301-2/+2
|
* Teach libdisk about alpha boot blocks.dfr1998-10-061-1/+8
|
* Revert $FreeBSD$ to $Id$peter1997-02-221-1/+1
|
* Adds slice_type_name() which extends chunk_n[] for subtype's too.obrien1997-01-231-1/+2
| | | | Curorary review by: phk
* Make the long-awaited change from $Id$ to $FreeBSD$jkh1997-01-141-1/+1
| | | | | | | | This will make a number of things easier in the future, as well as (finally!) avoiding the Id-smashing problem which has plagued developers for so long. Boy, I'm glad we're not using sup anymore. This update would have been insane otherwise.
* cmp -s || install -c ==> install -Cpeter1996-08-301-5/+2
|
* Removed -g from CFLAGS.bde1996-06-231-2/+2
|
* ``mv'' -> ``mv -f''wosch1996-05-071-1/+3
| | | | | ``rm'' -> ``rm -f'' so mv/rm may not ask for confirmation if you are not root
* Fix bogus MLINKS line. When is the old libdisk going to go away, BTW?jkh1996-03-181-2/+1
|
* libdisk is now `adult':joerg1996-03-171-1/+38
| | | | | | . install libdisk.h into /usr/include . add a (preliminary) manpage, mostly featured after phk's comments in libdisk.h
* Repository copy src/release/libdisk to src/lib/libdisk as per recentpeter1996-03-171-0/+1
| | | | | | | | | | discussion on -core about disk partitioning tools etc. Add NOPIC=yes to Makefile to prevent any possibility of version mismatch because of the potential grave consequences. (as suggested by phk) Note that this is also on RELENG_2_1_0, since the sysinstall stuff is hopefully going to remain in sync.
* Create_Chunk_DWIM() is here, though it doesn't quite do what the name implies.phk1995-05-101-1/+1
|
* Make the partitions names even more sensiblephk1995-05-041-1/+1
| | | | CheckRules sets the CHUNK_ALIGN & CHUNK_PAST_1024 flags.
* Make the target for tst01 more sensible.phk1995-05-031-16/+3
| | | | | | | | | | | | | Remove bogus targets. Allocate partition letters as follows: lowest offset "flags & CHUNK_IS_ROOT" gets 'a', lowest offset "subtype==FS_SWAP" gets 'b' the rest is allocated in offset order from this sequence "defghab". This will generally make sense. Added rules to complain if more than one CHUNK_IS_ROOT or more than one FS_SWAP per FreeBSD chunk. Set CHUNK_IS_ROOT on the 'a' partition in Open_Disk. Run Fixup_Names in Open_Disk.
* Stick a more BSD-like Makefile here so that I can link to the library.jkh1995-05-011-14/+15
|
* Use the DIOCSYNCSLICE ioctl now. (use only with kernel from this morning).phk1995-04-301-1/+2
| | | | | Get the CHS's right. Get the disklabels (more) right.
* Make the default case less scary :-)phk1995-04-301-0/+2
|
* Now we do writes too.phk1995-04-301-2/+20
|
* Names are assigned when chunks are created.phk1995-04-291-2/+2
| | | | Rules for only one fat & one extended in MBR.
* Next Iteration, getting better.phk1995-04-291-2/+5
| | | | | | | | Made an All_FreeBSD() function. Added a cmd-line interface (lowest rank) to the tst01 program. The tst01 program is harmless (worst it can do is coredump), but it is instructive to run, you can see what the slice-code things of your disk...
* Sanitize and explain a little bit... Implement the first rules...phk1995-04-291-1/+1
|
OpenPOWER on IntegriCloud