History log of /src/sbin/newfs/Makefile |
Revision | | Date | Author | Comments |
1.42 |
| 03-Jun-2023 |
lukem | bsd.own.mk: rename to CC_WNO_ADDRESS_OF_PACKED_MEMBER
Provide a single variable CC_WNO_ADDRESS_OF_PACKED_MEMBER with options for both clang and gcc, to replace CLANG_NO_ADDR_OF_PACKED_MEMBER CC_NO_ADDR_OF_PACKED_MEMBER GCC_NO_ADDR_OF_PACKED_MEMBER
Using the convention CC_compilerflag, where compilerflag is based on the full compiler flag name.
|
1.41 |
| 06-Sep-2020 |
mrg | add support for new GCC 9 warnings that may be too much to fix right now. new address-of-packed-member and format-overflow warnings have new GCC_NO_ADDR_OF_PACKED_MEMBER amd GCC_NO_FORMAT_OVERFLOW variables to remove these warnings.
apply to a bunch of the tree. mostly, these are real bugs that should be fixed, but in many cases, only by removing the 'packed' attribute from some structure that doesn't really need it. (i looked at many different ones, and while perhaps 60-80% were already properly aligned, it wasn't clear to me that the uses were always coming from sane data vs network alignment, so it doesn't seem safe to remove packed without careful research for each affect struct.) clang already warned (and was not erroring) for many of these cases, but gcc picked up dozens more.
|
1.40 |
| 08-Feb-2017 |
rin | Add smaller versions of fsck_ffs(8) and newfs(8) for install media, where support for Endian-Independent FFS and Apple UFS is disabled unless FFS_EI=1 and APPLE_UFS=1 are added to CRUNCHENV, respectively.
This reduces the size of ramdisk image for atari by over 15KB.
Thanks tsutsui and christos for their useful comments.
|
1.39 |
| 10-Aug-2012 |
joerg | branches: 1.39.14; 1.39.18; Don't depend on HAVE_GCC being always defined.
|
1.38 |
| 20-Jun-2011 |
mrg | branches: 1.38.2; remove most of the remaining HAVE_GCC tests that are always true in the modern world.
|
1.37 |
| 06-Mar-2011 |
bouyer | branches: 1.37.2; merge the bouyer-quota2 branch. This adds a new on-disk format to store disk quota usage and limits, integrated with ffs metadata. Usage is checked by fsck_ffs (no more quotacheck) and is covered by the WAPBL journal. Enabled with kernel option QUOTA2 (added where QUOTA was enabled in kernel config files), turned on with tunefs(8) on a per-filesystem basis. mount_mfs(8) can also turn quotas on.
See http://mail-index.netbsd.org/tech-kern/2011/02/19/msg010025.html for details.
|
1.36 |
| 09-Aug-2010 |
pooka | branches: 1.36.2; Add -G, which turns consistency check errors in warnings. The current testing purpose is to create a file system with block size > MAXPHYS.
(the check doesn't make that much sense anyway in these days of mobile file systems, since we're interested in MAXPHYS where we attempt to mount the file system, not where we happen to create it)
|
1.35 |
| 20-Dec-2009 |
dsl | Push the mount path for mount_mfs through realpath(). This matches what other fs do. Fixes PR/20362
|
1.34 |
| 06-Jun-2009 |
haad | Remove debuging CFLAGS.
|
1.33 |
| 05-Jun-2009 |
haad | Add support for DIOCGDISKINFO to disk like device drivers. Change partutil.c::getdiskinfo to use it to get disk geometry info. Use DIOCGWEDGEINFO ioctl to get information about partition size, if disk driver doesn't support it use old DIOCGDINFO. This patch adds support for wedge like devices(lvm logical volumes, ZFS zvol partitions) to newfs and other tools.
No objections on tech-userlevel@.
|
1.32 |
| 29-Aug-2008 |
gmcgarry | Wrap compiler-specific flags with HAVE_GCC and HAVE_PCC as necessary. Add a few flags for PCC.
|
1.31 |
| 26-Aug-2006 |
christos | branches: 1.31.18; 1.31.22; - Deal with wedges and the new disk geometry structures, instead of using struct disklabel.
Functionality lost: 1. struct disklabel used to be updated to contain bsize, fsize, cpg. This information was used to locate the alternative superblock in the filesystem if the primary superblock was corrupted. We need to find a new place to store this information if we need this functionality. 2. On vax SMD drives that contained bad sector lists, the newfs program knew how to get the offset and skip to the correct location in order to place the label.
|
1.30 |
| 11-May-2006 |
mrg | sprinkle some -fno-strict-aliasing and -Wno-pointer-sign with GCC4.
|
1.29 |
| 27-Jun-2005 |
christos | Move WARNS=3 to the Makefile.inc, and add a little const to the remaining programs that did not compile before.
|
1.28 |
| 01-Nov-2003 |
dsl | Use fstat(2) to get the partition size (falling back to the label on old kernels) so that newfs works on vinum (and similar). Kill the -V hack for vinum. Don't bother faking up a label for -F and mfs, nothing is needed from it. Ignore label if special doesn't match DISKPART(sb.st_rdev); Simplifly logic for default block/frag sizes. Update man page to match. WARNS=3.
|
1.27 |
| 26-Oct-2003 |
mycroft | Remove alpha optimization hack.
|
1.26 |
| 22-Mar-2003 |
jdolecek | no need for -I${MOUNT} & .PATH: ${MOUNT} now neither
|
1.25 |
| 22-Mar-2003 |
tron | Remove "getmntopts.c" from list of source files. getmntopts(3) is in "libutil" now.
|
1.24 |
| 28-Sep-2002 |
dbj | Add support for the Apple UFS variation on ffs This is the bulk of PR #17345
The general approach is to use a run time deteriminable value for DIRBLKSIZ. Additional allowances are included for using MAXSYMLINKLEN with FS_42INODEFMT and a shift in the cylinder group cluster summary count array. Support is added for managing the Apple UFS volume label.
|
1.23 |
| 19-Aug-2002 |
lukem | Use ${NETBSDSRCDIR}/some/path instead of ${.CURDIR}/../../some/path
|
1.22 |
| 08-Jan-2002 |
thorpej | Use MACHINE_ARCH, not MACHINE.
|
1.21 |
| 06-Jan-2002 |
lukem | add ugly hack for alpha to crank the optimisation level down to -O1, because the default -O2 with gcc 2.95.3 builds a non functional newfs
|
1.20 |
| 04-Jan-2002 |
lukem | remove duplicate MAN= entry
|
1.19 |
| 04-Jan-2002 |
lukem | move mount_mfs(8) into separate man page
|
1.18 |
| 29-Jul-2001 |
lukem | enable WARNS=2
|
1.17 |
| 15-Jan-1999 |
bouyer | #include machine/bswap.h and remove -lutil.
|
1.16 |
| 18-Mar-1998 |
bouyer | Allow creation of non-native byteorder FFS (via the '-B' option).
|
1.15 |
| 10-Oct-1997 |
christos | CFLAGS->CPPFLAGS
|
1.14 |
| 15-Sep-1997 |
lukem | define WARNS?=1 for all of sbin/*
|
1.13 |
| 30-Jun-1997 |
christos | Fix compiler warnings.
|
1.12 |
| 08-May-1997 |
gwr | Back out the .PATH.c changes. The .depend problem (and others) will be fixed using the new .NOPATH make feature instead.
|
1.11 |
| 06-May-1997 |
gwr | Use .PATH.c: ...
|
1.10 |
| 16-May-1996 |
thorpej | Use getmaxpartitions() from libutil, not a homegrown version.
|
1.9 |
| 18-Mar-1995 |
cgd | convert to new RCS Id conventions; reduce my headache
|
1.8 |
| 22-Dec-1994 |
cgd | specify man pages the new way.
|
1.7 |
| 08-Jun-1994 |
mycroft | Update from 4.4-Lite, with local changes.
|
1.6 |
| 12-Feb-1994 |
chopps | added -D${MACHINE} for amiga's becuase of differing sizeof (struct disklabel)
|
1.5 |
| 01-Aug-1993 |
mycroft | Add RCS identifiers.
|
1.4 |
| 28-Jul-1993 |
cgd | incorporate changes from 0-9-base to 0-9-ALPHA
|
1.3 |
| 23-Mar-1993 |
cgd | branches: 1.3.2; changed "Id" to "Header" for rcsids
|
1.2 |
| 22-Mar-1993 |
cgd | added rcs ids to all files
|
1.1 |
| 21-Mar-1993 |
cgd | branches: 1.1.1; Initial revision
|
1.1.1.2 |
| 13-Jun-1994 |
mycroft | Import 4.4-Lite version.
|
1.1.1.1 |
| 21-Mar-1993 |
cgd | initial import of 386bsd-0.1 sources
|
1.3.2.1 |
| 20-Jul-1993 |
cgd | change all refs to "mfs" to be to "mount_mfs" as is appropriate
|
1.31.22.1 |
| 18-Sep-2008 |
wrstuden | Sync with wrstuden-revivesa-base-2.
|
1.31.18.1 |
| 28-Sep-2008 |
mjf | Sync with HEAD.
|
1.36.2.1 |
| 20-Jan-2011 |
bouyer | Snapshot of work in progress on a modernised disk quota system: - new quotactl syscall (versionned for backward compat), which takes as parameter a path to a mount point, and a prop_dictionary (in plistref format) describing commands and arguments. For each command, status and data are returned as a prop_dictionary. quota commands features will be added to take advantage of this, exporting quota data or getting quota commands as plists.
- new on disk-format storage (all 64bit wide), integrated to metadata for ffs (and playing nicely with wapbl). Quotas are enabled on a ffs filesystem via superblock flags. tunefs(8) can enable or disable quotas. On a quota-enabled filesystem, fsck_ffs(8) will track per-uid/gid block and inode usages, and will check and update quotas in Pass 6. quota usage and limits are stored in unliked files (one for users, one for groups)l fsck_ffs(8) will create the files if needed, or free them if needed. This means that after enabling or disabling quotas on a filesystem; a fsck_ffs(8) run is required. quotacheck(8) is not needed any more, on a unclean shutdown fsck or journal replay will take care of fixing quotas. newfs(8) can create a ready-to-mount quota-enabled filesystem (superblock flags are set and quota inodes are created). Other new features or semantic changes: - default quota datas, applied to users or groups which don't already have a quota entry - per-user/group grace time (instead of a filesystem global one) - 0 really means "nothing allowed at all", not "no limit". If you want "no limit", set the limit to UQUAD_MAX (tools will understand "unlimited" and "-")
A quota file is structured as follow: it starts with a header, containing a few per-filesystem values, and the default quota limits. Quota entries are linked together as a simple list, each entry has a pointer (as an offset withing the file) to the next. The header has a pointer to a list of free quota entries, and a hash table of in-use entries. The size of the hash table depends on the filesystem block size (header+hash table should fit in the first block). The file is not sparse and is a multiple of filesystem block size (when the free quota entry list is empty a new filesystem block is allocated). quota entries to not cross filesystem block boundaries.
In memory, the kernel keeps a cache of recently used quota entries as a reference to the block number, and offset withing the block. The quota entry itself is keept in the buf cache.
fsck_ffs(8), tunefs(8) and newfs(8) supports are completed (with related atf tests :) The kernel can update disk usage and report it via quotactl(2).
Todo: enforce quotas limits (limits are not checked by kernel yet) update repquota, edquota and rpc.rquotad to the new world implement compat_50_quotactl ioctl. update quotactl(2) man page
fsck_ffs required fixes so that allocating new blocks or inodes will properly update the superblock and cg sumaries. This was not an issue up to now because superblock and cg sumaries check happened last, but now allocations or frees can happen in pass 6.
|
1.37.2.1 |
| 23-Jun-2011 |
cherry | Catchup with rmind-uvmplock merge.
|
1.38.2.1 |
| 30-Oct-2012 |
yamt | sync with head
|
1.39.18.1 |
| 21-Apr-2017 |
bouyer | Sync with HEAD
|
1.39.14.1 |
| 20-Mar-2017 |
pgoyette | Sync with HEAD
|