summaryrefslogtreecommitdiffstats
path: root/sbin/growfs
Commit message (Collapse)AuthorAgeFilesLines
* MFC r314655:ngie2017-05-301-3/+3
| | | | | | bin: normalize paths using SRCTOP-relative paths or :H when possible This simplifies make logic/output
* Cosmetic fixes for growfs(8) - remove unneeded capitalization and a spurioustrasz2016-05-111-4/+4
| | | | | | | newline, clarify a message. MFC after: 1 month Sponsored by: The FreeBSD Foundation
* Update the example growfs(8) manual page to include information on howtrasz2016-05-101-9/+8
| | | | | | | | | | | to make the system "notice" the updated disk size. (Relnotes, since I've forget to set it for "camcontrol reprobe", and it's worth mentioning.) MFC after: 1 month Relnotes: yes Sponsored by: The FreeBSD Foundation
* Merge ^/user/ngie/release-pkg-fix-tests to unbreak how test files are installedngie2016-05-041-4/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | after r298107 Summary of changes: - Replace all instances of FILES/TESTS with ${PACKAGE}FILES. This ensures that namespacing is kept with FILES appropriately, and that this shouldn't need to be repeated if the namespace changes -- only the definition of PACKAGE needs to be changed - Allow PACKAGE to be overridden by callers instead of forcing it to always be `tests`. In the event we get to the point where things can be split up enough in the base system, it would make more sense to group the tests with the blocks they're a part of, e.g. byacc with byacc-tests, etc - Remove PACKAGE definitions where possible, i.e. where FILES wasn't used previously. - Remove unnecessary TESTSPACKAGE definitions; this has been elided into bsd.tests.mk - Remove unnecessary BINDIRs used previously with ${PACKAGE}FILES; ${PACKAGE}FILESDIR is now automatically defined in bsd.test.mk. - Fix installation of files under data/ subdirectories in lib/libc/tests/hash and lib/libc/tests/net/getaddrinfo - Remove unnecessary .include <bsd.own.mk>s (some opportunistic cleanup) Document the proposed changes in share/examples/tests/tests/... via examples so it's clear that ${PACKAGES}FILES is the suggested way forward in terms of replacing FILES. share/mk/bsd.README didn't seem like the appropriate method of communicating that info. MFC after: never probably X-MFC with: r298107 PR: 209114 Relnotes: yes Tested with: buildworld, installworld, checkworld; buildworld, packageworld Sponsored by: EMC / Isilon Storage Division
* Use MIN() macro from sys/param.h.araujo2016-05-021-2/+1
| | | | | | Reviewed by: trasz MFC after: 2 weeks Differential Revision: https://reviews.freebsd.org/D6119
* sbin: use our howmany() macro when available through <sys/param.h>.pfg2016-05-011-1/+2
|
* Use NULL instead of 0 for pointers.araujo2016-04-181-1/+1
| | | | | | | strchr(3) will return NULL if the character does not appear in the string. MFC after: 2 weeks.
* MFHgjb2016-03-101-0/+11
|\ | | | | | | Sponsored by: The FreeBSD Foundation
| * DIRDEPS_BUILD: Connect MK_TESTS.bdrewery2016-03-091-0/+11
| | | | | | | | Sponsored by: EMC / Isilon Storage Division
* | Explicitly add more files to the 'runtime' package.gjb2016-02-091-0/+1
| | | | | | | | Sponsored by: The FreeBSD Foundation
* | First pass to fix the 'tests' packages.gjb2016-02-021-0/+4
|/ | | | Sponsored by: The FreeBSD Foundation
* Refactor the test/ Makefiles after recent changes to bsd.test.mk (r289158) andngie2015-10-121-2/+0
| | | | | | | | | | | | netbsd-tests.test.mk (r289151) - Eliminate explicit OBJTOP/SRCTOP setting - Convert all ad hoc NetBSD test integration over to netbsd-tests.test.mk - Remove unnecessary TESTSDIR setting - Use SRCTOP where possible for clarity MFC after: 2 weeks Sponsored by: EMC / Isilon Storage Divison
* Add META_MODE support.sjg2015-06-131-0/+19
|\ | | | | | | | | | | | | | | | | | | | | Off by default, build behaves normally. WITH_META_MODE we get auto objdir creation, the ability to start build from anywhere in the tree. Still need to add real targets under targets/ to build packages. Differential Revision: D2796 Reviewed by: brooks imp
| * dirdeps.mk now sets DEP_RELDIRsjg2015-06-081-2/+0
| |
| * Merge sync of headsjg2015-05-273-14/+15
| |\ | |/ |/|
| * Merge head from 7/28sjg2014-08-191-4/+4
| |\
| * | Updated dependenciessjg2014-05-161-1/+0
| | |
| * | Updated dependenciessjg2014-05-101-0/+2
| | |
| * | Merge from headsjg2014-05-081-1/+1
| |\ \
| * \ \ Merge headsjg2014-04-286-3/+105
| |\ \ \
| * \ \ \ Merge from headsjg2013-09-051-7/+2
| |\ \ \ \
| * | | | | Updated dependenciessjg2013-03-111-0/+1
| | | | | |
| * | | | | Updated dependenciessjg2013-02-161-2/+0
| | | | | |
| * | | | | Sync with HEAD.obrien2013-02-082-14/+44
| |\ \ \ \ \
| | \ \ \ \ \
| | \ \ \ \ \
| *-. \ \ \ \ \ Sync from headsjg2012-11-041-5/+4
| |\ \ \ \ \ \ \
| * | | | | | | | Sync FreeBSD's bmake branch with Juniper's internal bmake branch.marcel2012-08-221-0/+20
| | |/ / / / / / | |/| | | | | | | | | | | | | | | | | | | | | | Requested by: Simon Gerraty <sjg@juniper.net>
* | | | | | | | Fix growfs(8) build with debug enabled (make -DGFSDBG).trasz2015-04-242-5/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | PR: 199641 Submitted by: Willem Jan Withagen <wjw at digiware dot nl> MFC after: 1 month Sponsored by: The FreeBSD Foundation
* | | | | | | | Convert sbin/ to LIBADDbapt2014-11-251-3/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Reduce overlinking
* | | | | | | | Uniformly refer to a file system as "file system".trasz2014-11-201-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | MFC after: 1 month Sponsored by: The FreeBSD Foundation
* | | | | | | | Add example on how to use gpart before growfs. While here, reorder examplestrasz2014-11-201-6/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | so that the simplest one comes first. MFC after: 1 month Sponsored by: The FreeBSD Foundation
* | | | | | | | Document growfs(8) feature apparently nobody knows about.trasz2014-11-201-0/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | MFC after: 1 month Sponsored by: The FreeBSD Foundation
* | | | | | | | Use proper ordering in EXAMPLES section in growfs(8).trasz2014-11-201-5/+4
| |_|_|_|_|_|/ |/| | | | | | | | | | | | | | | | | | | | | | | | | | | MFC after: 1 month Sponsored by: The FreeBSD Foundation
* | | | | | | use .Mt to mark up email addresses consistently (part1)bapt2014-06-201-4/+4
| |_|_|_|_|/ |/| | | | | | | | | | | | | | | | | | | | | | | PR: 191174 Submitted by: Franco Fichtner <franco@lastsummer.de>
* | | | | | Use src.opts.mk in preference to bsd.own.mk except where we need stuffimp2014-05-061-1/+1
| |_|_|_|/ |/| | | | | | | | | | | | | | from the latter.
* | | | | Migrate tools/regression/sbin/ to the new tests layout.jmmv2014-03-163-0/+102
| | | | | | | | | | | | | | | | | | | | | | | | | Pretty much all that this change does is shuffles the code around and hooks it into the regular build. The code of the old tests has not changed.
* | | | | Refer newfs and growfs users to fsck_ffs instead ofbrueffer2014-02-091-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | fsck, the latter does not accept the referred to "-b" flag. This change was accidently committed directly to 9-STABLE in r237505. PR: 82720 Submitted by: David D.W. Downey MFC after: 1 week
* | | | | Somehow stable/10 branch contains correct version, but head doesn't.glebius2013-12-121-1/+1
| | | | |
* | | | | Adjust introduction history.pluknet2013-11-251-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Dump .Dd for this and previous changes. Discussed with: trasz MFC after: 3 days
* | | | | UFS2: make di_extsize unsigned.pfg2013-10-241-1/+1
| |_|_|/ |/| | | | | | | | | | | | | | | | | | | | | | | | | | | di_extsize is the EA size and as such it should be unsigned. Adjust related types for consistency. Reviewed by: mckusick (previous version) MFC after: 3 weeks
* | | | Allow the use of lowercase 'yes'eadler2013-05-081-1/+1
| | | | | | | | | | | | | | | | | | | | PR: bin/178422 Submitted by: Garrett Cooper <yaneurabeya@gmail.com>
* | | | Use arc4random() instead of random().delphij2013-04-151-6/+1
| |_|/ |/| | | | | | | | MFC after: 2 weeks
* | | When growing a filesystem, don't leave unused space at the endtrasz2012-12-161-7/+10
| | | | | | | | | | | | | | | | | | if there is not enough room for a full cylinder group. Reviewed by: mckusick@
* | | Fix extending filesystems of weird size by making sure the actual sizetrasz2012-12-151-0/+6
| | | | | | | | | | | | is always multiple of fragment size.
* | | Remove superfluous paragraph macro.joel2012-11-181-1/+0
| | |
* | | Make it possible to resize filesystems mounted read-write, using newlytrasz2012-11-182-7/+29
| |/ |/| | | | | | | | | | | introduced UFS write suspension mechanism. Reviewed by: kib, mckusick Sponsored by: FreeBSD Foundation
* | Fix problem with geom_label(4) not recognizing UFS labels on filesystemstrasz2012-10-301-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | extended using growfs(8). The problem here is that geom_label checks if the filesystem size recorded in UFS superblock is equal to the provider (i.e. device) size. This check cannot be removed due to backward compatibility. On the other hand, in most cases growfs(8) cannot set fs_size in the superblock to match the provider size, because, differently from newfs(8), it cannot recompute cylinder group sizes. To fix this problem, add another superblock field, fs_providersize, used only for this purpose. The geom_label(4) will attach if either fs_size (filesystem created with newfs(8)) or fs_providersize (filesystem expanded using growfs(8)) matches the device size. PR: kern/165962 Reviewed by: mckusick Sponsored by: FreeBSD Foundation
* | Fix sbin/ build with a 64-bit ino_t.mdf2012-09-271-2/+3
| | | | | | | | Original code by: Gleb Kurtsou
* | Remove unneeded variable reported by gcc46 which stopped being used ineadler2012-07-071-3/+0
|/ | | | | | | r234178. Approved by: cperciva MFC after: 3 days
* mdoc: remove redundant paragraph macro.joel2012-05-121-1/+0
|
* Fix offset calculation to actually rewrite the _last_ block.trasz2012-05-061-2/+2
|
OpenPOWER on IntegriCloud