Up to [cvs.NetBSD.org] / src / libexec / lfs_cleanerd
Request diff between arbitrary revisions
Default branch: MAIN
Current tag: MAIN
Revision 1.60 / (download) - annotate - [select for diffs], Fri Aug 30 23:37:23 2019 UTC (4 years, 7 months ago) by brad
Branch: MAIN
CVS Tags: phil-wifi-20200421,
phil-wifi-20200411,
phil-wifi-20200406,
phil-wifi-20191119,
netbsd-10-base,
netbsd-10-0-RELEASE,
netbsd-10-0-RC6,
netbsd-10-0-RC5,
netbsd-10-0-RC4,
netbsd-10-0-RC3,
netbsd-10-0-RC2,
netbsd-10-0-RC1,
netbsd-10,
is-mlppp-base,
is-mlppp,
cjep_sun2x-base1,
cjep_sun2x-base,
cjep_sun2x,
cjep_staticlib_x-base1,
cjep_staticlib_x-base,
cjep_staticlib_x,
HEAD
Changes since 1.59: +35 -22
lines
Diff to previous 1.59 (colored)
Add support for passing the raw device name separate from the filesystem. This is useful in the case where the cleaner is compiled into code, such as rump_lfs and the ATF tests. This helps to fix bin/54488
Revision 1.59 / (download) - annotate - [select for diffs], Thu Aug 22 20:28:08 2019 UTC (4 years, 7 months ago) by brad
Branch: MAIN
Changes since 1.58: +9 -8
lines
Diff to previous 1.58 (colored)
Use getdiskrawname to find the device name Reviewed by Christos
Revision 1.58 / (download) - annotate - [select for diffs], Fri Mar 18 10:10:21 2016 UTC (8 years, 1 month ago) by mrg
Branch: MAIN
CVS Tags: prg-localcount2-base3,
prg-localcount2-base2,
prg-localcount2-base1,
prg-localcount2-base,
prg-localcount2,
phil-wifi-base,
phil-wifi-20190609,
pgoyette-localcount-base,
pgoyette-localcount-20170426,
pgoyette-localcount-20170320,
pgoyette-localcount-20170107,
pgoyette-localcount-20161104,
pgoyette-localcount-20160806,
pgoyette-localcount-20160726,
pgoyette-localcount,
pgoyette-compat-merge-20190127,
pgoyette-compat-base,
pgoyette-compat-20190127,
pgoyette-compat-20190118,
pgoyette-compat-1226,
pgoyette-compat-1126,
pgoyette-compat-1020,
pgoyette-compat-0930,
pgoyette-compat-0906,
pgoyette-compat-0728,
pgoyette-compat-0625,
pgoyette-compat-0521,
pgoyette-compat-0502,
pgoyette-compat-0422,
pgoyette-compat-0415,
pgoyette-compat-0407,
pgoyette-compat-0330,
pgoyette-compat-0322,
pgoyette-compat-0315,
pgoyette-compat,
perseant-stdc-iso10646-base,
perseant-stdc-iso10646,
netbsd-9-base,
netbsd-8-base,
netbsd-8-2-RELEASE,
netbsd-8-1-RELEASE,
netbsd-8-1-RC1,
netbsd-8-0-RELEASE,
netbsd-8-0-RC2,
netbsd-8-0-RC1,
netbsd-8,
matt-nb8-mediatek-base,
matt-nb8-mediatek,
localcount-20160914,
bouyer-socketcan-base1,
bouyer-socketcan-base,
bouyer-socketcan
Branch point for: phil-wifi,
netbsd-9
Changes since 1.57: +17 -17
lines
Diff to previous 1.57 (colored)
move the compiler hack closer to the source of the fail
Revision 1.57 / (download) - annotate - [select for diffs], Wed Mar 16 18:58:34 2016 UTC (8 years, 1 month ago) by mrg
Branch: MAIN
Changes since 1.56: +4 -3
lines
Diff to previous 1.56 (colored)
make the GCC 4.8 specific hack for ci.clean being set GCC >= 4.8.
Revision 1.56 / (download) - annotate - [select for diffs], Fri Feb 19 03:54:37 2016 UTC (8 years, 1 month ago) by riastradh
Branch: MAIN
Changes since 1.55: +2 -1
lines
Diff to previous 1.55 (colored)
Need <stdbool.h> for true/false.
Revision 1.55 / (download) - annotate - [select for diffs], Thu Oct 15 06:25:04 2015 UTC (8 years, 6 months ago) by dholland
Branch: MAIN
Changes since 1.54: +19 -4
lines
Diff to previous 1.54 (colored)
Enable lfs64 in the cleaner.
Revision 1.54 / (download) - annotate - [select for diffs], Sat Oct 3 08:28:30 2015 UTC (8 years, 6 months ago) by dholland
Branch: MAIN
Changes since 1.53: +6 -7
lines
Diff to previous 1.53 (colored)
Use IINFO in the cleaner.
Revision 1.53 / (download) - annotate - [select for diffs], Tue Sep 1 06:16:58 2015 UTC (8 years, 7 months ago) by dholland
Branch: MAIN
Changes since 1.52: +3 -1
lines
Diff to previous 1.52 (colored)
Add new accessors for the d_type and d_namlen fields of struct lfs_direct. Napalm the old byteswap access logic for these.
Revision 1.52 / (download) - annotate - [select for diffs], Tue Sep 1 06:12:04 2015 UTC (8 years, 7 months ago) by dholland
Branch: MAIN
Changes since 1.51: +3 -3
lines
Diff to previous 1.51 (colored)
The ifile's inode number is constant. (it is always 1) Therefore, storing the value in the superblock and reading it out again is silly and offers the opportunity for it to become corrupted. So, don't do that (most of the code already didn't) and use the existing constant instead. Initialize new 32-bit superblocks with the value for the sake of old userland programs, but don't keep the value in the 64-bit superblock at all. (approved by Margo Seltzer)
Revision 1.51 / (download) - annotate - [select for diffs], Tue Sep 1 06:10:16 2015 UTC (8 years, 7 months ago) by dholland
Branch: MAIN
Changes since 1.50: +2 -1
lines
Diff to previous 1.50 (colored)
Add byteswapping to the dinode accessors. This prevents regressions in the ulfs code when switching to the new accessors. Note that while adding byteswapping to the other accessors is straightforward, I haven't done it yet; and that also is not enough to make LFS_EI work, because there are places lying around that bypass the accessors for one reason and another and all of them need to be updated. That is going to have to wait for a later day as LFS_EI is not on the critical path right now.
Revision 1.50 / (download) - annotate - [select for diffs], Wed Aug 12 18:28:00 2015 UTC (8 years, 8 months ago) by dholland
Branch: MAIN
Changes since 1.49: +9 -9
lines
Diff to previous 1.49 (colored)
Hack up dinode usage to be 64 vs. 32 as needed. Part 1. (This part changes the native lfs code; the ufs-derived code already has 64 vs. 32 logic, but as aspects of it are unsafe, and don't entirely interoperate cleanly with the lfs 64/32 stuff, pass 2 will be rehashing that.)
Revision 1.49 / (download) - annotate - [select for diffs], Wed Aug 12 18:27:01 2015 UTC (8 years, 8 months ago) by dholland
Branch: MAIN
Changes since 1.48: +16 -16
lines
Diff to previous 1.48 (colored)
Provide 32-bit and 64-bit versions of FINFO. This also entailed sorting out part of struct segment, as that contains a pointer into the current FINFO data.
Revision 1.48 / (download) - annotate - [select for diffs], Wed Aug 12 18:26:26 2015 UTC (8 years, 8 months ago) by dholland
Branch: MAIN
Changes since 1.47: +18 -16
lines
Diff to previous 1.47 (colored)
Make 32-bit and 64-bit versions of SEGSUM. Also fix some of the FINFO handling as it's closely entangled.
Revision 1.47 / (download) - annotate - [select for diffs], Wed Aug 12 18:25:51 2015 UTC (8 years, 8 months ago) by dholland
Branch: MAIN
Changes since 1.46: +24 -9
lines
Diff to previous 1.46 (colored)
Add IFILE32 and IFILE64 structures for the on-disk ifile entries. Add and use accessors. There are also a bunch of places that cast and I hope I've found them all...
Revision 1.46 / (download) - annotate - [select for diffs], Wed Aug 12 18:25:03 2015 UTC (8 years, 8 months ago) by dholland
Branch: MAIN
Changes since 1.45: +37 -7
lines
Diff to previous 1.45 (colored)
Make 32-bit and 64-bit versions of CLEANERINFO. XXX: while this is written to disk, it seems like much of it would XXX: be better set up as a commpage shared with the cleaner.
Revision 1.45 / (download) - annotate - [select for diffs], Wed Aug 12 18:23:16 2015 UTC (8 years, 8 months ago) by dholland
Branch: MAIN
Changes since 1.44: +26 -9
lines
Diff to previous 1.44 (colored)
Fix assorted 64->32 truncations related to BLOCK_INFO. Also make note of a cleaner limitation: it seems that when it goes to coalesce discontiguous files, it mallocs an array with one BLOCK_INFO for every block in the file. Therefore, with 64-bit LFS, on a 32-bit platform it will be possible to have files large enough to overflow the cleaner's address space. Currently these will be skipped and cause warnings via syslog. At some point someone should rewrite the logic to coalesce files to use chunks of some reasonable size, as discontinuity between such chunks is immaterial and mallocing this much space is silly and fragile. Also, the kernel only accepts up to 65536 blocks at a time for bmapv and markv, so processing more than this at once probably isn't useful and may not even work currently. I don't want to change this around just now as it's not entirely trivial.
Revision 1.44 / (download) - annotate - [select for diffs], Sun Aug 2 18:18:09 2015 UTC (8 years, 8 months ago) by dholland
Branch: MAIN
Changes since 1.43: +19 -6
lines
Diff to previous 1.43 (colored)
Add a (draft) 64-bit superblock. Make things build again. Add pieces of support for using both superblock types where convenient, and specifically to the superblock accessors, but don't actually enable it anywhere. First substantive step on PR 50000.
Revision 1.43 / (download) - annotate - [select for diffs], Sun Aug 2 18:14:16 2015 UTC (8 years, 8 months ago) by dholland
Branch: MAIN
Changes since 1.42: +2 -2
lines
Diff to previous 1.42 (colored)
Use accessor functions for the version field of the lfs superblock. I thought at first maybe the cases that test the version should be rolled into the accessors, but on the whole I think the conclusion on that is no.
Revision 1.42 / (download) - annotate - [select for diffs], Sun Aug 2 18:10:07 2015 UTC (8 years, 8 months ago) by dholland
Branch: MAIN
Changes since 1.41: +19 -16
lines
Diff to previous 1.41 (colored)
Second batch of 64 -> 32 truncations in lfs, along with more minor tidyups and corrections in passing.
Revision 1.41 / (download) - annotate - [select for diffs], Tue Jul 28 05:14:23 2015 UTC (8 years, 8 months ago) by dholland
Branch: MAIN
Changes since 1.40: +35 -35
lines
Diff to previous 1.40 (colored)
Use lfs_accessors.h in conjunction with the cleaner's struct clfs. Remove previous hacks.
Revision 1.40 / (download) - annotate - [select for diffs], Fri Jul 24 06:59:31 2015 UTC (8 years, 8 months ago) by dholland
Branch: MAIN
Changes since 1.39: +57 -51
lines
Diff to previous 1.39 (colored)
More lfs superblock accessors. (This changes the rest of the code over; all the accessors were already added.) The difference between this commit and the previous one is arbitrary, but the previous one passed the regression tests on its own so I'm keeping it separate to help with any bisections that might be needed in the future.
Revision 1.39 / (download) - annotate - [select for diffs], Fri Jul 24 06:56:41 2015 UTC (8 years, 8 months ago) by dholland
Branch: MAIN
Changes since 1.38: +44 -42
lines
Diff to previous 1.38 (colored)
Switch to accessor functions for elements of the LFS on-disk superblock. This will allow switching between 32/64 bit forms on the fly; it will also allow handling LFS_EI reasonably tidily. (That currently doesn't work on the superblock.) It also gets rid of cpp abuse in the form of fake structure member macros. Also, instead of doing sleep/wakeup on &lfs_avail and &lfs_nextseg inside the on-disk superblock, add extra elements to the in-memory struct lfs for this. (XXX: these should be changed to condvars, but not right now) XXX: this migrates a structure needed by the lfs code in libsa (struct salfs) into lfs.h, where it doesn't belong, but for the time being this is necessary in order to allow the accessors (and the various lfs macros and other goop that relies on them) to compile.
Revision 1.38 / (download) - annotate - [select for diffs], Sun Mar 29 19:35:58 2015 UTC (9 years ago) by chopps
Branch: MAIN
Changes since 1.37: +5 -5
lines
Diff to previous 1.37 (colored)
- Fix fallout for recent bread() change (removing cred arg).
Revision 1.37 / (download) - annotate - [select for diffs], Sat Oct 19 17:19:30 2013 UTC (10 years, 5 months ago) by christos
Branch: MAIN
CVS Tags: yamt-pagecache-base9,
tls-maxphys-base,
tls-earlyentropy-base,
tls-earlyentropy,
riastradh-xf86-video-intel-2-7-1-pre-2-21-15,
riastradh-drm2-base3,
netbsd-7-nhusb-base-20170116,
netbsd-7-nhusb-base,
netbsd-7-nhusb,
netbsd-7-base,
netbsd-7-2-RELEASE,
netbsd-7-1-RELEASE,
netbsd-7-1-RC2,
netbsd-7-1-RC1,
netbsd-7-1-2-RELEASE,
netbsd-7-1-1-RELEASE,
netbsd-7-1,
netbsd-7-0-RELEASE,
netbsd-7-0-RC3,
netbsd-7-0-RC2,
netbsd-7-0-RC1,
netbsd-7-0-2-RELEASE,
netbsd-7-0-1-RELEASE,
netbsd-7-0,
netbsd-7
Changes since 1.36: +5 -5
lines
Diff to previous 1.36 (colored)
fix unused variable warnings
Revision 1.36 / (download) - annotate - [select for diffs], Tue Jun 18 18:18:57 2013 UTC (10 years, 10 months ago) by christos
Branch: MAIN
CVS Tags: riastradh-drm2-base2,
riastradh-drm2-base1,
riastradh-drm2-base,
riastradh-drm2
Changes since 1.35: +16 -16
lines
Diff to previous 1.35 (colored)
Prefix most of the cpp macros with lfs_ and LFS_ to avoid conflicts with ffs. This was done so that boot blocks that want to compile both FFS and LFS in the same file work.
Revision 1.35 / (download) - annotate - [select for diffs], Sat Jun 8 21:15:30 2013 UTC (10 years, 10 months ago) by dholland
Branch: MAIN
Changes since 1.34: +1 -2
lines
Diff to previous 1.34 (colored)
Missed one of the -I${NETBSDSRCDIR}/sys hacks yesterday; remove it now.
Revision 1.34 / (download) - annotate - [select for diffs], Sat Jun 8 02:09:35 2013 UTC (10 years, 10 months ago) by dholland
Branch: MAIN
Changes since 1.33: +2 -2
lines
Diff to previous 1.33 (colored)
Move the dinode (on-disk inode) structures to lfs.h, since they are and will be obviously required by userland tools that need to read the on-disk structures. Also, DINODE{1,2}_SIZE -> LFS_DINODE{1,2}_SIZE.
Revision 1.33 / (download) - annotate - [select for diffs], Thu Jun 6 00:53:35 2013 UTC (10 years, 10 months ago) by dholland
Branch: MAIN
Changes since 1.32: +11 -11
lines
Diff to previous 1.32 (colored)
ufs -> ulfs for lfs_cleanerd
Revision 1.32 / (download) - annotate - [select for diffs], Tue Jan 22 09:39:11 2013 UTC (11 years, 2 months ago) by dholland
Branch: MAIN
CVS Tags: yamt-pagecache-base8,
agc-symver-base,
agc-symver
Changes since 1.31: +5 -5
lines
Diff to previous 1.31 (colored)
Stuff UFS_ in front of a few of ufs's symbols to reduce namespace pollution. Specifically: ROOTINO -> UFS_ROOTINO WINO -> UFS_WINO NXADDR -> UFS_NXADDR NDADDR -> UFS_NDADDR NIADDR -> UFS_NIADDR MAXSYMLINKLEN -> UFS_MAXSYMLINKLEN MAXSYMLINKLEN_UFS[12] -> UFS[12]_MAXSYMLINKLEN (for consistency) Sort out ext2fs's misuse of NDADDR and NIADDR; fortunately, these have the same values in ext2fs and ffs. No functional change intended.
Revision 1.31 / (download) - annotate - [select for diffs], Mon Apr 16 10:48:27 2012 UTC (12 years ago) by joerg
Branch: MAIN
CVS Tags: yamt-pagecache-base7,
yamt-pagecache-base6,
yamt-pagecache-base5
Branch point for: tls-maxphys
Changes since 1.30: +3 -3
lines
Diff to previous 1.30 (colored)
Make load_threshold double and restore original value of 0.2. From NAKAJIMA Yoshihiro.
Revision 1.30 / (download) - annotate - [select for diffs], Thu Apr 12 11:46:16 2012 UTC (12 years ago) by joerg
Branch: MAIN
CVS Tags: yamt-pagecache-base4
Changes since 1.29: +2 -2
lines
Diff to previous 1.29 (colored)
Don't assign non-integral constants to integral variables.
Revision 1.29 / (download) - annotate - [select for diffs], Thu Feb 2 03:47:11 2012 UTC (12 years, 2 months ago) by perseant
Branch: MAIN
CVS Tags: netbsd-6-base,
netbsd-6-1-RELEASE,
netbsd-6-1-RC4,
netbsd-6-1-RC3,
netbsd-6-1-RC2,
netbsd-6-1-RC1,
netbsd-6-1-5-RELEASE,
netbsd-6-1-4-RELEASE,
netbsd-6-1-3-RELEASE,
netbsd-6-1-2-RELEASE,
netbsd-6-1-1-RELEASE,
netbsd-6-1,
netbsd-6-0-RELEASE,
netbsd-6-0-RC2,
netbsd-6-0-RC1,
netbsd-6-0-6-RELEASE,
netbsd-6-0-5-RELEASE,
netbsd-6-0-4-RELEASE,
netbsd-6-0-3-RELEASE,
netbsd-6-0-2-RELEASE,
netbsd-6-0-1-RELEASE,
netbsd-6-0,
netbsd-6,
matt-nb6-plus-nbase,
matt-nb6-plus-base,
matt-nb6-plus
Changes since 1.28: +7 -1
lines
Diff to previous 1.28 (colored)
Shut down the cleaner earlier if the filesystem is unmounted.
Revision 1.28 / (download) - annotate - [select for diffs], Mon Jan 2 21:35:18 2012 UTC (12 years, 3 months ago) by perseant
Branch: MAIN
Changes since 1.27: +16 -7
lines
Diff to previous 1.27 (colored)
In lfs_cleanerd, check errno earlier, to avoid premature exit when the real errno was EAGAIN. When coalescing, check against NULL to avoid seg fault.
Revision 1.27 / (download) - annotate - [select for diffs], Thu Dec 23 18:08:41 2010 UTC (13 years, 3 months ago) by mlelstv
Branch: MAIN
CVS Tags: yamt-pagecache-base3,
yamt-pagecache-base2,
yamt-pagecache-base,
matt-mips64-premerge-20101231,
cherry-xenmp-base,
cherry-xenmp,
bouyer-quota2-nbase,
bouyer-quota2-base,
bouyer-quota2
Branch point for: yamt-pagecache
Changes since 1.26: +7 -2
lines
Diff to previous 1.26 (colored)
Deduce raw device correctly by prepending "r" to basename.
Revision 1.26 / (download) - annotate - [select for diffs], Mon Aug 16 22:11:55 2010 UTC (13 years, 8 months ago) by pooka
Branch: MAIN
Changes since 1.25: +10 -3
lines
Diff to previous 1.25 (colored)
Don't exit when running as a lib after FS is unmounted, just return from the mainloop.
Revision 1.25 / (download) - annotate - [select for diffs], Thu Jul 29 14:09:45 2010 UTC (13 years, 8 months ago) by pooka
Branch: MAIN
Changes since 1.24: +3 -1
lines
Diff to previous 1.24 (colored)
Do the semaphore trick only if the cleaner is run as a lib -- the standard installation doesn't get linked against librt or libpthread.
Revision 1.24 / (download) - annotate - [select for diffs], Thu Jul 29 14:07:39 2010 UTC (13 years, 8 months ago) by pooka
Branch: MAIN
Changes since 1.23: +13 -2
lines
Diff to previous 1.23 (colored)
Add a method for posting a semaphore when cleaner init has reached the main loop. This is useful for very quickly executed lfs runs such as those in tests, as an initialization phase cleaner may prevent file system unmount.
Revision 1.23 / (download) - annotate - [select for diffs], Tue Feb 16 23:13:13 2010 UTC (14 years, 2 months ago) by mlelstv
Branch: MAIN
Changes since 1.22: +14 -3
lines
Diff to previous 1.22 (colored)
Read the padded superblocks to avoid problems with disks that have larger sectors than 512 Bytes.
Revision 1.22 / (download) - annotate - [select for diffs], Fri Oct 9 16:35:17 2009 UTC (14 years, 6 months ago) by pooka
Branch: MAIN
CVS Tags: matt-premerge-20091211
Changes since 1.21: +11 -3
lines
Diff to previous 1.21 (colored)
Attempt to recover slightly more gracefully if the kernel socket is shutdown.
Revision 1.21 / (download) - annotate - [select for diffs], Thu Aug 6 00:51:55 2009 UTC (14 years, 8 months ago) by pooka
Branch: MAIN
Changes since 1.20: +28 -17
lines
Diff to previous 1.20 (colored)
Define syscalls of lfs userspace tools (cleaner, mainly) through a struct called kernelops, which contains standard system calls for the normal case and rump system calls for the rump case. Make it possible to run the lfs cleaner in a library fashion (taking the quick route with the implementation).
Revision 1.20 / (download) - annotate - [select for diffs], Thu Aug 6 00:23:08 2009 UTC (14 years, 8 months ago) by pooka
Branch: MAIN
Changes since 1.19: +2 -2
lines
Diff to previous 1.19 (colored)
add D to getopt so that previous actually works
Revision 1.19 / (download) - annotate - [select for diffs], Thu Aug 6 00:20:45 2009 UTC (14 years, 8 months ago) by pooka
Branch: MAIN
Changes since 1.18: +9 -4
lines
Diff to previous 1.18 (colored)
add -D, which prompts to stay on foreground without debug spewage
Revision 1.18 / (download) - annotate - [select for diffs], Thu Aug 6 00:05:01 2009 UTC (14 years, 8 months ago) by pooka
Branch: MAIN
Changes since 1.17: +4 -2
lines
Diff to previous 1.17 (colored)
Check main loop fcntl return value and error out if it fails. Prevents e.g. from 5.0 cleaner looping forever against -current lfs driver (fcntl data structure sizes are different).
Revision 1.17 / (download) - annotate - [select for diffs], Mon Mar 16 00:08:10 2009 UTC (15 years, 1 month ago) by lukem
Branch: MAIN
CVS Tags: jym-xensuspend-nbase,
jym-xensuspend-base
Changes since 1.16: +10 -10
lines
Diff to previous 1.16 (colored)
fix WARNS=3 issues; * sprinkle const * avoid tests < 0 on unsigned types * test fwrite() returns nmemb not <0
Revision 1.16 / (download) - annotate - [select for diffs], Sun Mar 15 23:56:24 2009 UTC (15 years, 1 month ago) by lukem
Branch: MAIN
Changes since 1.15: +5 -5
lines
Diff to previous 1.15 (colored)
avoid a shadowed variable
Revision 1.15 / (download) - annotate - [select for diffs], Fri May 16 09:21:59 2008 UTC (15 years, 11 months ago) by hannken
Branch: MAIN
CVS Tags: yamt-pf42-base4,
yamt-pf42-base3,
yamt-pf42-base2,
wrstuden-revivesa-base-3,
wrstuden-revivesa-base-2,
wrstuden-revivesa-base-1,
wrstuden-revivesa-base,
netbsd-5-base,
netbsd-5-2-RELEASE,
netbsd-5-2-RC1,
netbsd-5-2-3-RELEASE,
netbsd-5-2-2-RELEASE,
netbsd-5-2-1-RELEASE,
netbsd-5-2,
netbsd-5-1-RELEASE,
netbsd-5-1-RC4,
netbsd-5-1-RC3,
netbsd-5-1-RC2,
netbsd-5-1-RC1,
netbsd-5-1-5-RELEASE,
netbsd-5-1-4-RELEASE,
netbsd-5-1-3-RELEASE,
netbsd-5-1-2-RELEASE,
netbsd-5-1-1-RELEASE,
netbsd-5-1,
netbsd-5-0-RELEASE,
netbsd-5-0-RC4,
netbsd-5-0-RC3,
netbsd-5-0-RC2,
netbsd-5-0-RC1,
netbsd-5-0-2-RELEASE,
netbsd-5-0-1-RELEASE,
netbsd-5-0,
netbsd-5,
matt-nb5-pq3-base,
matt-nb5-pq3,
matt-nb5-mips64-u2-k2-k4-k7-k8-k9,
matt-nb5-mips64-u1-k1-k5,
matt-nb5-mips64-premerge-20101231,
matt-nb5-mips64-premerge-20091211,
matt-nb5-mips64-k15,
matt-nb5-mips64,
matt-nb4-mips64-k7-u2a-k9b,
matt-mips64-base2,
hpcarm-cleanup-nbase
Branch point for: jym-xensuspend
Changes since 1.14: +6 -5
lines
Diff to previous 1.14 (colored)
Make sure all cached buffers with valid, not yet written data have been run through copy-on-write. Call fscow_run() with valid data where possible. The LP_UFSCOW hack is no longer needed to protect ffs_copyonwrite() against endless recursion. - Add a flag B_MODIFY to bread(), breada() and breadn(). If set the caller intends to modify the buffer returned. - Always run copy-on-write on buffers returned from ffs_balloc(). - Add new function ffs_getblk() that gets a buffer, assigns a new blkno, may clear the buffer and runs copy-on-write. Process possible errors from getblk() or fscow_run(). Part of PR kern/38664. Welcome to 4.99.63 Reviewed by: YAMAMOTO Takashi <yamt@netbsd.org>
Revision 1.14 / (download) - annotate - [select for diffs], Mon Apr 28 20:23:04 2008 UTC (15 years, 11 months ago) by martin
Branch: MAIN
Branch point for: wrstuden-revivesa
Changes since 1.13: +1 -8
lines
Diff to previous 1.13 (colored)
Remove clause 3 and 4 from TNF licenses
Revision 1.13 / (download) - annotate - [select for diffs], Mon Oct 8 21:41:13 2007 UTC (16 years, 6 months ago) by ad
Branch: MAIN
CVS Tags: yamt-pf42-baseX,
yamt-pf42-base,
matt-armv6-nbase,
matt-armv6-base,
keiichi-mipv6-base,
keiichi-mipv6,
hpcarm-cleanup-base,
cube-autoconf-base,
cube-autoconf
Branch point for: yamt-pf42
Changes since 1.12: +5 -6
lines
Diff to previous 1.12 (colored)
brelse() now takes two arguments.
Revision 1.12 / (download) - annotate - [select for diffs], Sat Nov 18 18:43:25 2006 UTC (17 years, 5 months ago) by tls
Branch: MAIN
CVS Tags: wrstuden-fixsa-newbase,
wrstuden-fixsa-base-1,
wrstuden-fixsa-base,
wrstuden-fixsa,
netbsd-4-base,
netbsd-4-0-RELEASE,
netbsd-4-0-RC5,
netbsd-4-0-RC4,
netbsd-4-0-RC3,
netbsd-4-0-RC2,
netbsd-4-0-RC1,
netbsd-4-0-1-RELEASE,
netbsd-4-0,
netbsd-4,
matt-mips64-base,
matt-mips64,
hpcarm-cleanup
Branch point for: matt-armv6
Changes since 1.11: +7 -1
lines
Diff to previous 1.11 (colored)
Temporarily disable -c (file coalescing) until data corruption issues can be resolved.
Revision 1.11 / (download) - annotate - [select for diffs], Fri Sep 1 19:43:51 2006 UTC (17 years, 7 months ago) by perseant
Branch: MAIN
Changes since 1.10: +3 -2
lines
Diff to previous 1.10 (colored)
Pay attention to the new LFS_CLEANER_MUST_CLEAN flag in the Ifile.
Revision 1.10 / (download) - annotate - [select for diffs], Mon Jul 31 16:34:42 2006 UTC (17 years, 8 months ago) by martin
Branch: MAIN
CVS Tags: abandoned-netbsd-4-base,
abandoned-netbsd-4
Changes since 1.9: +3 -2
lines
Diff to previous 1.9 (colored)
Make filehandles opaque to userland
Revision 1.9 / (download) - annotate - [select for diffs], Thu Jul 13 12:00:24 2006 UTC (17 years, 9 months ago) by martin
Branch: MAIN
Changes since 1.8: +2 -2
lines
Diff to previous 1.8 (colored)
Fix alignement problems for fhandle_t, exposed by gcc4.1. While touching all vptofh/fhtovp functions, get rid of VFS_MAXFIDSIZ, version the getfh(2) syscall and explicitly pass the size available in the filehandle from userland. Discussed on tech-kern, with lots of help from yamt (thanks!).
Revision 1.8 / (download) - annotate - [select for diffs], Fri Jul 7 18:19:30 2006 UTC (17 years, 9 months ago) by perseant
Branch: MAIN
Changes since 1.7: +11 -1
lines
Diff to previous 1.7 (colored)
Place an upper bound on the number of segments to clean at one time, no matter how empty they are. Note that if two blocks have the same inode and block number, they sort the same (this should never happen, but if it does there's no reason to have qsort scramble the list). Add some diagnostic syslog messages for unusual cases.
Revision 1.7 / (download) - annotate - [select for diffs], Fri May 12 19:33:02 2006 UTC (17 years, 11 months ago) by perseant
Branch: MAIN
Changes since 1.6: +49 -22
lines
Diff to previous 1.6 (colored)
Be more careful about checking return value of {m,re}alloc(). In determining when to stop reading segments when counting bytes (-b flag), total the sizes of the blocks we're actually writing instead of assuming they are all full blocks: many could be fragments or inode blocks. This increases the number of segments per Ifile write, markedly improving the efficiency of the cleaner in the small file case.
Revision 1.6 / (download) - annotate - [select for diffs], Thu May 11 12:26:38 2006 UTC (17 years, 11 months ago) by mrg
Branch: MAIN
Changes since 1.5: +4 -4
lines
Diff to previous 1.5 (colored)
avoid some char * vs. u_char * issues.
Revision 1.5 / (download) - annotate - [select for diffs], Fri Apr 14 00:58:32 2006 UTC (18 years ago) by perseant
Branch: MAIN
Changes since 1.4: +5 -2
lines
Diff to previous 1.4 (colored)
When checking hidden cleaning costs, don't erroneously add the first indirect block when considering the cleaning of block numbers less than NDADDR (which do not use indirect blocks). Also, note the loss of only half a block per segment to fragmentation when considering the benefit function, rather than a whole block.
Revision 1.4 / (download) - annotate - [select for diffs], Wed Apr 5 21:42:49 2006 UTC (18 years ago) by perseant
Branch: MAIN
Changes since 1.3: +2 -2
lines
Diff to previous 1.3 (colored)
Look for the inode pointers in the right place if lfs_bsize != lfs_fsize.
Revision 1.3 / (download) - annotate - [select for diffs], Wed Apr 5 20:29:40 2006 UTC (18 years ago) by perseant
Branch: MAIN
Changes since 1.2: +40 -9
lines
Diff to previous 1.2 (colored)
Handle the case of inode blocks misidentified by the segment headers correctly, a problem reported by Kurt Schreiner; as well as similar error cases (realloc returning NULL or no cleanable segments found).
Revision 1.2 / (download) - annotate - [select for diffs], Sat Apr 1 23:48:56 2006 UTC (18 years ago) by christos
Branch: MAIN
Changes since 1.1: +3 -3
lines
Diff to previous 1.1 (colored)
Coverity CID 2847: Don't use LIST_FOREACH if you are going to free the current pointer!
Revision 1.1 / (download) - annotate - [select for diffs], Thu Mar 30 19:10:13 2006 UTC (18 years ago) by perseant
Branch: MAIN
A new version of the cleaner. In general, works about as well as the old cleaner, but with more legible code. Includes code for reading and writing to the raw disk device (so that an unmounted fs could be cleaned), for the use of a single daemon to clean multiple filesystems to save on resources, and for recording the old contents of cleaned segments to offline storage for regression testing of the LFS system as a whole; though these new features are not properly tested at this point.