Age | Commit message (Collapse) | Author | |
---|---|---|---|
2013-11-02 | No need to cast constants or simple variables to (daddr_t). Use | Kenneth R Westerback | |
(u_int64_t) instead of (daddr_t) when casting a variable in an expression passed to DL_SETDSIZE(). Change a variable counting open files from daddr_t to int64_t. ok deraadt@ with the tweak to fix that pesky expression. | |||
2013-11-01 | Sprinkle (long long) casts where %lld is being used to print daddr_t | Kenneth R Westerback | |
variables. Some random whitespace/knf repairs encountered on the way. ok miod@ on inspection, feedback & more suggestions from millert@ | |||
2013-06-11 | final removal of daddr64_t. daddr_t has been 64 bit for a long enough | Theo de Raadt | |
test period; i think 3 years ago the last bugs fell out. ok otto beck others | |||
2013-04-25 | big int_t/time_t fixes; ok deraadt@ krw@ | Otto Moerbeek | |
2013-04-24 | pretty print bigger off_t | Theo de Raadt | |
ok tedu otto | |||
2013-02-11 | Xr scan_ffs 8; requested by Scott McEachern | Jason McIntyre | |
2011-05-08 | Small memory optimization from NetBSD; ok krw@ millert@ | Otto Moerbeek | |
2011-05-02 | Remove unused variable | Charles Longeau | |
ok krw@ otto@ | |||
2011-04-24 | remove support for (very) old ffs on-disk formats; ok krw@ and no | Otto Moerbeek | |
objection form the usual suspects | |||
2011-04-16 | Blend in some code from netbsd and freebsd that reduces memory consumption | Otto Moerbeek | |
and speeds things up in a lot of cases. Prompted by Amit Kulkarni; ok krw@ on a slighly diffrenent incarnation | |||
2010-08-12 | Print the real device name followed by the disklabel UID in parenthesis | Joel Sing | |
when fsck is run against a disklabel UID. This allows a user to determine which device is really being scanned. ok krw@ | |||
2010-07-09 | kill redundant docheck() function; ok deraadt@ | Otto Moerbeek | |
2010-07-09 | Avoid crashes by using correct types for block numbers, which can grow | Otto Moerbeek | |
large on very large filesystems; reported by Benny Lofgren; partly from FreeBSD. ok deraadt@ beck@ millert@ | |||
2010-06-15 | When fsck_ffs is used with disklabel UIDs the hot root test fails in | Joel Sing | |
blockcheck() since we try to stat() the UID. This means that we fail to reload the mount if we have indeed cleaned the read-only root file system. To avoid this, rerun blockcheck() if the real name is different to the original device name, once we have opened the device with opendev(3). ok krw@ thib@ | |||
2010-06-09 | add missing headers needed for opendev() and close() | Charles Longeau | |
ok jsing@ krw@ | |||
2010-06-05 | Switch fsck_ffs(8) and fsdb(8) to opendev(3) so that they will soon be able | Joel Sing | |
to operate with disklabel UIDs. ok marco@ krw@ otto@ | |||
2010-05-18 | dont let sys/ioctl.h imply that you get the ioctls in dkio.h. this | David Gwynne | |
gets rid of #include <sys/dkio.h> in sys/ioctl.h and adds #include <sys/dkio.h> to the places that actually want and use the disk ioctls. this became an issue when krw@'s X build failed when he was testing a change to dkio.h. tested by krw@ help from and ok miod@ | |||
2010-03-03 | Add description of -p and remove reference to fstab processing. | Otto Moerbeek | |
Prompted by J.C. Robers; ok jmc@ | |||
2010-01-10 | remove references to docs we no longer install; | Jason McIntyre | |
2010-01-04 | Stop installing many of the incredibly dated and un-authoritative share/doc | Theo de Raadt | |
files. If any information found in these documents is worthwhile and you miss it, please make the time to work it into the manual pages (which people actually do read). ok guenther | |||
2010-01-03 | Neither .Pp nor unqualified text are allowed at the top level of .Bl; | Ingo Schwarze | |
instead, .It is required. Thus, move .Pp and text before the .Bl, and remove the .Pp altogether where it is not needed. Syntax errors found by mandoc(1), also required to fix the mandoc build; feedback and ok jmc@, and sobrado@ also supports the direction. | |||
2009-12-10 | do not leak memory, found by parfait, ok millert otto | Theo de Raadt | |
(one case was a false positive, but one is a modified copy of the other) | |||
2009-10-28 | rcsid[] and sccsid[] and copyright[] are essentially unmaintained (and | Theo de Raadt | |
unmaintainable). these days, people use source. these id's do not provide any benefit, and do hurt the small install media (the 33,000 line diff is essentially mechanical) ok with the idea millert, ok dms | |||
2009-05-29 | catch funny values of cg_initediblk; make fsck_ffs more robust | Otto Moerbeek | |
against forms of cg header corruption as experienced by todd@; ok millert@ | |||
2008-12-29 | Some forms of inode corruption can make remsize and thus isize go | Otto Moerbeek | |
negative and cause SEGVs. Handle this the same as an out of range blockno. ok jsg@ (also victim) pedro@ thib@ | |||
2008-11-09 | add missing header needed by getpagesize(). | Charles Longeau | |
ok millert@ | |||
2008-11-06 | Have called pass pagesize into FS_KERNMAXFILESIZE(), because there is no | Theo de Raadt | |
automatic symbol that has this information. PAGE_SIZE is simply not portable, or even fixed on some systems. ok otto | |||
2008-11-02 | check for the maximum file size to avoid some out-of-bounds accesses; | Otto Moerbeek | |
ok millert@ | |||
2008-06-10 | reduce mem usage by about 20% by packing state and type of an inode in a single | Otto Moerbeek | |
byte. Original diff by drahn@; twists by me; ok millert@ thib@ | |||
2008-06-10 | print sizeofs using %zu; ok joris@ | Otto Moerbeek | |
2008-06-09 | The new newfs(8) code causes alternate superblocks to end up in | Otto Moerbeek | |
different locations than before. Actually, the disklabel does not contain enough info to completely reconstruct the locations of all alternate sb's. So use a hardcoded list of all possible 1st alternate sb locations, but don't forget to verify against the label. ok millert@ thib@ | |||
2008-05-26 | reorg fields in structs inodesc and inoinfo to reduce size on some archs; from | Otto Moerbeek | |
mickey; ok millert@ | |||
2007-09-16 | Do not use DIP() as an lvalue; founc by pcc. ok millert@ ray@ | Otto Moerbeek | |
2007-07-17 | rmoev the macppc workaround, now that isset() and friends use expressions | Otto Moerbeek | |
that gcc likes better | |||
2007-07-04 | workaround for [daddr64_t] issue; worked on mostly by otto, wee bit by me | Theo de Raadt | |
2007-06-25 | Teach fsck_ffs about 64-bit block addresses. ok (and help) moritz@ pedro@ | Otto Moerbeek | |
2007-06-01 | ufs1_daddr_t cleanup, okay otto@ | Pedro Martelletto | |
2007-06-01 | Don't use cg.cg_niblk but fs.fs_ipg; the former has no meaning any more. | Otto Moerbeek | |
Fixes PR 5494; with pedro@; ok pedro@ millert@ | |||
2007-06-01 | convert ufs2_daddr_t -> daddr64_t for greater clarity; ok pedro otto thib | Theo de Raadt | |
2007-05-31 | convert to new .Dd format; | Jason McIntyre | |
2007-05-29 | Updated disklabel format to support larger disks and partitions. We | Otto Moerbeek | |
free room in struct partition by packing fragment size and fragments/block more tighlty and use the resulting space to make offset and size 48 bits. For the disk part we use spare fields in struct disklabel. Kernel converts in-mem copy of the on-disk label if needed, disklabel(8) writes new version. We are careful to only change fields not used by bootloaders. Conception of basic scheme by deraadt. ok deraadt@ krw@ | |||
2007-05-18 | Fix mismerge; remove statement without effect. OK otto@ pedro@ | Todd C. Miller | |
2007-05-11 | pass the right size arg to memset, otherwise we end up with a | Otto Moerbeek | |
partially initialized summary info struct. ok millert@ pedro@ | |||
2007-05-05 | Do not rely on fs_cpg; this is especially important for ffs2 which | Todd C. Miller | |
does not use fs_cpg at all. From FreeBSD. OK otto@ | |||
2007-04-23 | Remove 'cg_space' from 'struct cg'. Due to the alignment on 64-bit | Pedro Martelletto | |
architectures, CGSIZE() was returning something sligthly over one block. The 'new' fsck would round this value up to a fragment boundary, and end up trying to access memory beyond allocated space. From mickey@, okay pedro@, millert@ and otto@. | |||
2007-04-21 | use the correct size arg to memcmp when checking fs_cstotal. | Otto Moerbeek | |
now jmc does not use 8TB in /tmp anymore. ok pedro@ | |||
2007-04-18 | When trying to read the primary superblock, do not accidentially read | Otto Moerbeek | |
a ffs1 alternate sb at the primary ffs2 sb location. Use the same test as the kernel does. ok millert@ pedro@ | |||
2007-04-10 | Add support for checking ffs2 filesystems. From pedro@ based on | Todd C. Miller | |
the ufs2 changes in FreeBSD by Kirk Mckusick. | |||
2007-03-19 | be a tiny little bit more verbose when encoutering bad block or fragment | Otto Moerbeek | |
sizes; requested by mickey@ | |||
2007-03-19 | Add FFS2 fields to the superblock, change file system tools to keep | Pedro Martelletto | |
accessing FFS1 fields, okay art@, quite some testing by ckuethe@, simon@ and thib@, thanks. |