summaryrefslogtreecommitdiffstats
path: root/sbin/newfs_msdos
Commit message (Collapse)AuthorAgeFilesLines
* Use nitems() from sys/param.h.araujo2016-04-191-1/+1
| | | | MFC after: 2 weeks.
* Explicitly add more files to the 'runtime' package.gjb2016-02-091-0/+1
| | | | Sponsored by: The FreeBSD Foundation
* Fix leak in mkfs_msdos(..) by initializing img to NULL and free'ing at the endngie2015-12-061-40/+47
| | | | | | | | | | | of the function Differential Revision: https://reviews.freebsd.org/D4405 MFC after: 1 week PR: 204943 Reviewed by: emaste, jilles Reported by: David Binderman <dcb314@hotmail.com> Sponsored by: EMC / Isilon Storage Division
* Use netbsd usage() implementation in newfs_msdosemaste2015-11-271-27/+14
| | | | | | | In r289629 newfs_msdos option descriptions are available in mkfs_msdos.h. Obtained from: NetBSD
* mkfs_msdos: sync with NetBSDemaste2015-11-271-3/+8
| | | | | | Add a sanity test and clean up whitespace. Obtained from: NetBSD
* newfs_msdos: rework error handling for eventual use in makefsemaste2015-11-232-98/+191
| | | | | | | | Return -1 on errors from mkfs_msdos() instead of err()/errx(), to allow different consumers to handle errors as appropriate. Obtained from: NetBSD Sponsored by: The FreeBSD Foundation
* Update $NetBSD$ IDemaste2015-11-231-1/+1
| | | | | | NetBSD mkfs_msdos.h rev 1.3 removed the no-endorsement clause from the license block, which had already been done in the source I imported in r289629.
* newfs_msdos: use NetBSD's mkfs_msdos.h verbatim for makefs compatibilityemaste2015-10-201-42/+50
| | | | Sponsored by: The FreeBSD Foundation
* newfs_msdos: prefer snprintf to sprintfemaste2015-10-161-1/+1
| | | | | Obtained from: NetBSD Sponsored by: The FreeBSD Foundation
* newfs_msdos: move mkfs_msdos to separate file for later use in makefsemaste2015-10-154-835/+918
| | | | Sponsored by: The FreeBSD Foundation
* newfs_msdos: rework option parsing to match NetBSDemaste2015-10-151-125/+162
| | | | | | | | | | NetBSD split newfs_msdos in two so that they can reuse the file system creation part in makefs. This change is a step on the path of bringing that support to FreeBSD. Reviewed by: kib, pfg Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D3905
* It's 2015, and some people are still trying to use fdisk and thentrasz2015-09-021-3/+1
| | | | | | | | | | | | | go asking what debug flags to set for GEOM to make it work. Advice them to use gpart(8) instead. Something similar should probably done with disklabel, but I need to rewrite the disklabel examples first. Reviewed by: wblock@ MFC after: 1 month Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D3315
* Add META_MODE support.sjg2015-06-131-0/+18
|\ | | | | | | | | | | | | | | | | | | | | 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-272-22/+20
| |\ | |/ |/|
| * Merge from head@274682sjg2014-11-191-1/+1
| |\
| * \ Merge head from 7/28sjg2014-08-191-1/+1
| |\ \
| * | | Updated dependenciessjg2014-05-161-1/+0
| | | |
| * | | Updated dependenciessjg2014-05-101-0/+2
| | | |
| * | | Merge from headsjg2014-05-081-31/+31
| |\ \ \
| * \ \ \ Merge headsjg2014-04-281-5/+5
| |\ \ \ \
| * \ \ \ \ Merge head@256284sjg2013-10-131-3/+3
| |\ \ \ \ \
| * \ \ \ \ \ Merge headsjg2013-09-111-2/+2
| |\ \ \ \ \ \
| * | | | | | | Updated dependenciessjg2013-03-111-0/+1
| | | | | | | |
| * | | | | | | Updated dependenciessjg2013-02-161-2/+0
| | | | | | | |
| * | | | | | | Sync with HEAD.obrien2013-02-081-4/+4
| |\ \ \ \ \ \ \
| * | | | | | | | Sync FreeBSD's bmake branch with Juniper's internal bmake branch.marcel2012-08-221-0/+19
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Requested by: Simon Gerraty <sjg@juniper.net>
* | | | | | | | | Update documented OEM string in newfs_msdos(8).pfg2015-04-091-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This was updated in r203868 to better match the naming scheme in other OSs that use FAT. MFC after: 3 days
* | | | | | | | | Remove old ioctl use and support, once and for all.imp2015-01-061-20/+18
| |_|_|_|_|_|_|/ |/| | | | | | |
* | | | | | | | Use "NO NAME" as the default unnamed label.pfg2014-08-131-1/+1
| |_|_|_|_|_|/ |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Microsoft recommends avoiding the use of spaces in the string structures for FAT. Unfortunately they do just that by default in the case of unlabeled filesystems. Follow the default MS behavior to avoid confusion in common tools like file(1). This was actually the default behavior before r203868. Obtained from: NetBSD (CVS rev. 1.39) MFC after: 3 days
* | | | | | | use .Mt to mark up email addresses consistently (part1)bapt2014-06-201-1/+1
| |_|_|_|_|/ |/| | | | | | | | | | | | | | | | | | | | | | | PR: 191174 Submitted by: Franco Fichtner <franco@lastsummer.de>
* | | | | | Small cleanup: mostly whitespace vs. tabs.pfg2014-04-301-31/+31
| |_|_|_|/ |/| | | |
* | | | | Correct min/max cluster counts for FAT12/16/32emaste2014-04-241-5/+5
| |_|_|/ |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | FAT12 1..4084 FAT16 4085..65524 FAT32 65525.. This is required for interoperability with other FAT implementations, and in particular UEFI. Obtained from: NetBSD Sponsored by: The FreeBSD Foundation
* | | | Sweep man pages replacing ad -> ada.pluknet2013-10-011-3/+3
| |_|/ |/| | | | | | | | | | | | | | Approved by: re (blackend) MFC after: 1 week X-MFC note: stable/9 only
* | | newfs_msdos: fix inaccurate comments.pfg2013-09-071-2/+2
| |/ |/| | | | | | | | | | | | | | | | | The fields from deMTime and deMDate in the DOS directory entry are actually the last-modified time/date. According to some online documentation these are the only timestamps available in FAT12/FAT16. MFC after: 3 days
* | newfs_msdos: cosmetical cleanupspfg2013-01-191-4/+4
|/ | | | | | | | | | | - Simplify diagnostic messages. - Adopt lowercase first letters to make the messages more canonical. PR: bin/175404 Submitted by: Christoph Mallon Reviewed by: bde MFC after: 3 days
* Globally replace u_int*_t from (non-contributed) man pages.ed2012-02-121-18/+18
| | | | | | | | | | | The reasoning behind this, is that if we are consistent in our documentation about the uint*_t stuff, people will be less tempted to write new code that uses the non-standard types. I am not going to bump the man page dates, as these changes can be considered style nits. The meaning of the man pages is unaffected. MFC after: 1 month
* Many style fixes.pfg2011-12-202-77/+97
| | | | | | | | | | Remove C99 initializers: they don't help in this case. Set errno to 0 before strtoll() (from NetBSD). PR: 151850 Suggested by: bde Approved by: jhb (Mentor) MFC after: 2 weeks
* Use __packed to prevent alignment from taking place, which otherwise maydelphij2011-11-111-5/+5
| | | | | | | | | | change the on-disk format in an incompatible way. Without this change, msdosfs created on FreeBSD/arm would not be mountable. PR: bin/162486 Submitted by: Ian Lepore <freebsd damnhippie dyndns org> Reported by: Mattia Rossi <mrossi at swin.edu.au> MFC after: 3 days
* Use NULL instead of 0 for third argument of sigaction(2).ae2011-07-121-1/+1
| | | | | Pointed by: kib MFC after: 2 weeks
* Add SIGINFO handler.ae2011-07-121-0/+24
| | | | | | Reviewed by: kib Obtained from: NetBSD (partly) MFC after: 2 weeks
* MFtbemd:imp2010-08-231-1/+2
| | | | | Prefer MACHNE_CPUARCH to MACHINE_ARCH in most contexts where you want to test of all the CPUs of a given family conform.
* Clarify that the "number of bytes per sector"-range in thebcr2010-07-251-2/+2
| | | | | | | | | | | -S option is meant to be "inclusive". The original issue of the PR was already fixed. PR: docs/142418 Submitted by: David Naylor (naylor dot b dot david at gmail dot com) No objection from: kib MFC after: 5 days
* Rename variables to match msdosfs headers.kib2010-02-142-249/+250
| | | | | | Submitted by: Pedro F. Giffuni <giffunip tutopia com> Reviewed by: bde MFC after: 2 weeks
* Some cleanups from NetBSD:kib2010-02-142-20/+23
| | | | | | | | | | | | | | - C99 initializers. - Change the default volume label from "NO NAME" to "NO_NAME". - Set OEM String to "BSD4.4 " following the unnamed spacing convention in that other OS that suggests "MSWIN4.1" Also, David Naylor's changes for Clang, mostly changing the signess of constants. Submitted by: Pedro F. Giffuni <giffunip tutopia com> Clang fixes by: David Naylor <naylor.b.david gmail com> Reviewed by: bde (with some disagreement about Clang issues) MFC after: 2 weeks
* Switch the default WARNS level for sbin/ to 6.ru2009-10-191-2/+0
| | | | Submitted by: Ulrich Spörlein
* Style fixes to the newfs_msdos manpage.ed2009-04-111-8/+9
| | | | Submitted by: Christoph Mallon <christoph mallon gmx de>
* Update documentation (forgotten in r190929).ed2009-04-111-4/+5
| | | | Submitted by: Christoph Mallon <christoph mallon gmx de>
* Do not prepend /dev/ when -C is used.ed2009-04-112-5/+7
| | | | Submitted by: Christoph Mallon <christoph mallon gmx de>
* When using -C, do not warn when the file is not a character device, but warn ↵ed2009-04-111-2/+7
| | | | | | when it is not a regular file. Submitted by: Christoph Mallon <christoph mallon gmx de>
OpenPOWER on IntegriCloud