summaryrefslogtreecommitdiff
path: root/lib/libdisk/Makefile
Commit message (Collapse)AuthorAgeFilesLines
* Disconnect sun4v architecture from the three.Attilio Rao2011-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 Notes: svn path=/head/; revision=221869
* MFtbemd:Warner Losh2010-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. Notes: svn path=/head/; revision=211725
* unbreak build for sparc64 etc.Kip Macy2006-10-091-1/+1
| | | | | | | | | | TARGET won't be defined on non subarches Approved by: rwatson (mentor) Reviewed by: jmg Notes: svn path=/head/; revision=163149
* buildworld fixes for sun4vKip Macy2006-10-091-1/+7
| | | | | | | | | | not sure why pmap.c is included as it is unchanged Approved by: rwatson (mentor) Reviewed by: jmg Notes: svn path=/head/; revision=163148
* Revert 1.45 now that snmp_hostres uses libgeom.Hartmut Brandt2006-01-271-0/+1
| | | | Notes: svn path=/head/; revision=154915
* Build shared library on behalf of bsnmpd.Ruslan Ermilov2006-01-121-1/+0
| | | | Notes: svn path=/head/; revision=154247
* NODOCCOMPRESS -> NO_DOCCOMPRESSRuslan Ermilov2004-12-211-2/+2
| | | | | | | | | | | NOINFO -> NO_INFO NOINFOCOMPRESS -> NO_INFOCOMPRESS NOLINT -> NO_LINT NOPIC -> NO_PIC NOPROFILE -> NO_PROFILE Notes: svn path=/head/; revision=139106
* For variables that are only checked with defined(), don't provideRuslan Ermilov2004-10-241-2/+2
| | | | | | | any fake value. Notes: svn path=/head/; revision=136910
* Down to WARNS=2 for a while.Jun Kuriyama2004-03-301-1/+1
| | | | Notes: svn path=/head/; revision=127604
* Make libdisk WARNS=4 clean.Jun Kuriyama2004-03-301-1/+1
| | | | | | | Glanced by: jhb Notes: svn path=/head/; revision=127595
* style.Makefile:Johan Karlsson2004-02-231-1/+1
| | | | | | | Use WARNS?= instead of WARNS=. Notes: svn path=/head/; revision=126176
* o Move Int_Open_Disk() from disk.c to open_disk.c for use by allMarcel Moolenaar2003-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. Notes: svn path=/head/; revision=121888
* Update libdisk to use the explicing encoding function for sunlabel dataPoul-Henning Kamp2003-04-211-0/+2
| | | | | | | structures. Notes: svn path=/head/; revision=113823
* Use ${MACHINE} variable instead of using '.if .endif' each machines.Yoshihiro Takahashi2002-10-311-18/+1
| | | | Notes: svn path=/head/; revision=106237
* Since make release is toast anyway, add wood to the pyre:Poul-Henning Kamp2002-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 Notes: svn path=/head/; revision=106135
* Add back ia64 support that was removed in the last few revisions.Peter Wemm2002-10-271-1/+5
| | | | | | | I've cloned write_ia64_disk.c from write_i386_disk.c. Notes: svn path=/head/; revision=106008
* Remove unnecessary ioctls tickling kernel side to realize that we fiddledPoul-Henning Kamp2002-10-231-0/+1
| | | | | | | with the disk. GEOM will automatically retaste when we closet he filedesc. Notes: svn path=/head/; revision=105817
* Untangle #ifdefs in the write-end of things by giving each arch itsPoul-Henning Kamp2002-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. Notes: svn path=/head/; revision=105816
* Swing the weed-whacker around libdisk:Poul-Henning Kamp2002-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. Notes: svn path=/head/; revision=105681
* NOSHARED is meaningless in the bsd.lib.mk context.Ruslan Ermilov2002-05-131-1/+0
| | | | Notes: svn path=/head/; revision=96518
* MAN[1-9] -> MAN.Ruslan Ermilov2001-03-271-1/+1
| | | | Notes: svn path=/head/; revision=74870
* Turn dkcksum() into an __inline function.Poul-Henning Kamp2000-09-161-2/+1
| | | | | | | Change its type to u_int_16_t. Notes: svn path=/head/; revision=65921
* Changes for PC-98.KATO Takenori2000-03-291-0/+3
| | | | Notes: svn path=/head/; revision=58794
* Replace beforeinstall target with new variables used by .mk system.Rodney W. Grimes2000-01-141-5/+1
| | | | | | | Reviewed by: marcel, and make world Notes: svn path=/head/; revision=55955
* $Id$ -> $FreeBSD$Peter Wemm1999-08-281-1/+1
| | | | Notes: svn path=/head/; revision=50476
* Eliminate all dependence on boot1 and boot2. This is passed in byJordan K. Hubbard1998-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. Notes: svn path=/head/; revision=42187
* Transition libdisk to use /boot since what it's looking for (boot1 and boot2)Jordan K. Hubbard1998-12-301-2/+2
| | | | | | | are now there. Notes: svn path=/head/; revision=42182
* Backed out previous commit. It depends on a.out utilities and librariesBruce Evans1998-12-301-2/+2
| | | | | | | somehow being available even on pure elf systems. Notes: svn path=/head/; revision=42181
* Fixed bootstrapping of /usr/mdec/boot[12].Bruce Evans1998-12-301-2/+2
| | | | Notes: svn path=/head/; revision=42180
* Teach libdisk about alpha boot blocks.Doug Rabson1998-10-061-1/+8
| | | | Notes: svn path=/head/; revision=40000
* Revert $FreeBSD$ to $Id$Peter Wemm1997-02-221-1/+1
| | | | Notes: svn path=/head/; revision=22993
* Adds slice_type_name() which extends chunk_n[] for subtype's too.David E. O'Brien1997-01-231-1/+2
| | | | | | | Curorary review by: phk Notes: svn path=/head/; revision=21958
* Make the long-awaited change from $Id$ to $FreeBSD$Jordan K. Hubbard1997-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. Notes: svn path=/head/; revision=21673
* cmp -s || install -c ==> install -CPeter Wemm1996-08-301-5/+2
| | | | Notes: svn path=/head/; revision=17930
* Removed -g from CFLAGS.Bruce Evans1996-06-231-2/+2
| | | | Notes: svn path=/head/; revision=16613
* ``mv'' -> ``mv -f''Wolfram Schneider1996-05-071-1/+3
| | | | | | | | ``rm'' -> ``rm -f'' so mv/rm may not ask for confirmation if you are not root Notes: svn path=/head/; revision=15679
* Fix bogus MLINKS line. When is the old libdisk going to go away, BTW?Jordan K. Hubbard1996-03-181-2/+1
| | | | Notes: svn path=/head/; revision=14669
* libdisk is now `adult':Joerg Wunsch1996-03-171-1/+38
| | | | | | | | | . install libdisk.h into /usr/include . add a (preliminary) manpage, mostly featured after phk's comments in libdisk.h Notes: svn path=/head/; revision=14665
* Repository copy src/release/libdisk to src/lib/libdisk as per recentPeter Wemm1996-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. Notes: svn path=/head/; revision=14657
* Create_Chunk_DWIM() is here, though it doesn't quite do what the name implies.Poul-Henning Kamp1995-05-101-1/+1
| | | | Notes: svn path=/head/; revision=8404
* Make the partitions names even more sensiblePoul-Henning Kamp1995-05-041-1/+1
| | | | | | | CheckRules sets the CHUNK_ALIGN & CHUNK_PAST_1024 flags. Notes: svn path=/head/; revision=8264
* Make the target for tst01 more sensible.Poul-Henning Kamp1995-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. Notes: svn path=/head/; revision=8233
* Stick a more BSD-like Makefile here so that I can link to the library.Jordan K. Hubbard1995-05-011-14/+15
| | | | Notes: svn path=/head/; revision=8197
* Use the DIOCSYNCSLICE ioctl now. (use only with kernel from this morning).Poul-Henning Kamp1995-04-301-1/+2
| | | | | | | | Get the CHS's right. Get the disklabels (more) right. Notes: svn path=/head/; revision=8192
* Make the default case less scary :-)Poul-Henning Kamp1995-04-301-0/+2
| | | | Notes: svn path=/head/; revision=8179
* Now we do writes too.Poul-Henning Kamp1995-04-301-2/+20
| | | | Notes: svn path=/head/; revision=8178
* Names are assigned when chunks are created.Poul-Henning Kamp1995-04-291-2/+2
| | | | | | | Rules for only one fat & one extended in MBR. Notes: svn path=/head/; revision=8160
* Next Iteration, getting better.Poul-Henning Kamp1995-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... Notes: svn path=/head/; revision=8157
* Sanitize and explain a little bit... Implement the first rules...Poul-Henning Kamp1995-04-291-1/+1
| | | | Notes: svn path=/head/; revision=8156
* This is a revision 0.00 of the backend stuff for the fdisk/disklabel stuffPoul-Henning Kamp1995-04-281-0/+11
in the new sysinstall. If you want to give a helping hand, then send email to phk@FreeBSD.ORG. DO NOT COMMIT TO THIS DIRECTORY! Notes: svn path=/head/; revision=8153