svn commit: r212617 - head/sys/ufs/ffs

2010-09-14 Thread Kirk McKusick
Author: mckusick Date: Tue Sep 14 18:04:05 2010 New Revision: 212617 URL: http://svn.freebsd.org/changeset/base/212617 Log: Update comments in soft updates code to more fully describe the addition of journalling. Only functional change is to tighten a KASSERT. Reviewed by: jeff Roberso

svn commit: r213119 - head/sbin/newfs

2010-09-24 Thread Kirk McKusick
Author: mckusick Date: Fri Sep 24 19:08:56 2010 New Revision: 213119 URL: http://svn.freebsd.org/changeset/base/213119 Log: Reported problem: Large (60GB) filesystems created using "newfs -U -O 1 -b 65536 -f 8192" show incorrect results from "df" for free and used space when mounted immedi

svn commit: r213275 - head/sys/ufs/ffs

2010-09-29 Thread Kirk McKusick
Author: mckusick Date: Wed Sep 29 14:46:57 2010 New Revision: 213275 URL: http://svn.freebsd.org/changeset/base/213275 Log: Since local variable 'i' is used only in a KASSERT, declare and initialize it only if INVARIANTS is defined to avoid a declared but unused warning. Suggested by: B

svn commit: r228794 - head/sbin/newfs

2011-12-21 Thread Kirk McKusick
Author: mckusick Date: Wed Dec 21 22:49:16 2011 New Revision: 228794 URL: http://svn.freebsd.org/changeset/base/228794 Log: Reduce NFPI by half to keep the default number of inodes the same with the now default 32K/4K filesystem the same as the number of inodes in the previously default 16K/

svn commit: r215576 - in head: sbin/mount sys/ufs/ffs

2010-11-20 Thread Kirk McKusick
Author: mckusick Date: Sat Nov 20 18:40:50 2010 New Revision: 215576 URL: http://svn.freebsd.org/changeset/base/215576 Log: Delete /sys/ufs/ffs/README.snapshot as it is no longer relevant. Drop reference to it in mount(8). MFC: 3 days Deleted: head/sys/ufs/ffs/README.snapshot Modified

svn commit: r215728 - stable/8/sbin/newfs

2010-11-22 Thread Kirk McKusick
Author: mckusick Date: Tue Nov 23 01:24:27 2010 New Revision: 215728 URL: http://svn.freebsd.org/changeset/base/215728 Log: MFC of 213119 Reported problem: Large (60GB) filesystems created using "newfs -U -O 1 -b 65536 -f 8192" show incorrect results from "df" for free and used space wh

svn commit: r215729 - stable/7/sbin/newfs

2010-11-22 Thread Kirk McKusick
Author: mckusick Date: Tue Nov 23 01:32:44 2010 New Revision: 215729 URL: http://svn.freebsd.org/changeset/base/215729 Log: MFC of 213119 Reported problem: Large (60GB) filesystems created using "newfs -U -O 1 -b 65536 -f 8192" show incorrect results from "df" for free and used space wh

svn commit: r215784 - in stable/8: sbin/mount sys/ufs/ffs

2010-11-23 Thread Kirk McKusick
Author: mckusick Date: Tue Nov 23 23:13:58 2010 New Revision: 215784 URL: http://svn.freebsd.org/changeset/base/215784 Log: MFC of 215576 Delete /sys/ufs/ffs/README.snapshot as it is no longer relevant. Drop reference to it in mount(8). Reported by: Bruce Cran PR: docs/128325 Del

svn commit: r215785 - in stable/7: sbin/mount sys/ufs/ffs

2010-11-23 Thread Kirk McKusick
Author: mckusick Date: Wed Nov 24 00:00:32 2010 New Revision: 215785 URL: http://svn.freebsd.org/changeset/base/215785 Log: MFC of 215576 Delete /sys/ufs/ffs/README.snapshot as it is no longer relevant. Drop reference to it in mount(8). Reported by: Bruce Cran PR: docs/128325 Del

svn commit: r216421 - head/sys/sys

2010-12-13 Thread Kirk McKusick
Author: mckusick Date: Mon Dec 13 23:53:55 2010 New Revision: 216421 URL: http://svn.freebsd.org/changeset/base/216421 Log: Tighten up some of the comments describing turnstiles and sleepqueues. No code changes. Reviewed by: John Baldwin Modified: head/sys/sys/sleepqueue.h head/sys/s

svn commit: r198702 - head/usr.bin/logger

2009-10-30 Thread Kirk McKusick
Author: mckusick Date: Fri Oct 30 21:54:53 2009 New Revision: 198702 URL: http://svn.freebsd.org/changeset/base/198702 Log: When reading input from a file or device (via -f option) set the input to be in non-buffering mode so that input lines are logged as they occur rather than being saved

svn commit: r225806 - head/sys/ufs/ffs

2011-09-27 Thread Kirk McKusick
Author: mckusick Date: Tue Sep 27 17:34:02 2011 New Revision: 225806 URL: http://svn.freebsd.org/changeset/base/225806 Log: This update eliminates the system hang reported in kern/160662 when taking a snapshot on a filesystem running with journaled soft updates. Reported by: Hans Otte

svn commit: r225807 - head/sys/ufs/ffs

2011-09-27 Thread Kirk McKusick
Author: mckusick Date: Tue Sep 27 17:41:48 2011 New Revision: 225807 URL: http://svn.freebsd.org/changeset/base/225807 Log: This update eliminates a lock-order reversal warning discovered whle tracking down the system hang reported in kern/160662 and corrected in revision 225806. The LOR is

svn commit: r225850 - stable/9/sys/ufs/ffs

2011-09-28 Thread Kirk McKusick
Author: mckusick Date: Wed Sep 28 19:36:21 2011 New Revision: 225850 URL: http://svn.freebsd.org/changeset/base/225850 Log: MFC: r225806: This update eliminates the system hang reported in kern/160662 when taking a snapshot on a filesystem running with journaled soft updates. As journal

svn commit: r225851 - stable/9/sys/ufs/ffs

2011-09-28 Thread Kirk McKusick
Author: mckusick Date: Wed Sep 28 19:38:47 2011 New Revision: 225851 URL: http://svn.freebsd.org/changeset/base/225851 Log: MFC r225807: This update eliminates a lock-order reversal warning discovered whle tracking down the system hang reported in kern/160662 and corrected in revision 2258

svn commit: r226265 - head/sys/kern

2011-10-11 Thread Kirk McKusick
Author: mckusick Date: Tue Oct 11 18:46:41 2011 New Revision: 226265 URL: http://svn.freebsd.org/changeset/base/226265 Log: When unmounting a filesystem always wait for the vfs_busy lock to clear so that if no vnodes in the filesystem are actively in use the unmount will succeed rather than

svn commit: r226266 - head/sbin/tunefs

2011-10-11 Thread Kirk McKusick
Author: mckusick Date: Tue Oct 11 19:03:57 2011 New Revision: 226266 URL: http://svn.freebsd.org/changeset/base/226266 Log: After creating a filesystem using newfs -j the time stamps are all zero and thus report as having been made in January 1970. Apart from looking a bit silly, it also tri

svn commit: r226520 - head/sbin/dump

2011-10-18 Thread Kirk McKusick
Author: mckusick Date: Tue Oct 18 18:42:26 2011 New Revision: 226520 URL: http://svn.freebsd.org/changeset/base/226520 Log: The current /etc/dumpdates file restricts device names to 32 characters. With the addition of various GEOM layers some device names now exceed this length, for example

svn commit: r226621 - stable/9/sbin/tunefs

2011-10-21 Thread Kirk McKusick
Author: mckusick Date: Fri Oct 21 22:07:52 2011 New Revision: 226621 URL: http://svn.freebsd.org/changeset/base/226621 Log: MFC 226266: After creating a filesystem using newfs -j the time stamps are all zero and thus report as having been made in January 1970. Apart from looking a bit sill

svn commit: r226622 - stable/9/sys/kern

2011-10-21 Thread Kirk McKusick
Author: mckusick Date: Fri Oct 21 22:12:24 2011 New Revision: 226622 URL: http://svn.freebsd.org/changeset/base/226622 Log: MFC: 226265 When unmounting a filesystem always wait for the vfs_busy lock to clear so that if no vnodes in the filesystem are actively in use the unmount will suc

svn commit: r216676 - head/sys/ufs/ffs

2010-12-22 Thread Kirk McKusick
Author: mckusick Date: Thu Dec 23 00:38:57 2010 New Revision: 216676 URL: http://svn.freebsd.org/changeset/base/216676 Log: This patch fixes a soft update panic while running perl 5.12 tests which produced: panic: indir_trunc: Index out of range -148 parent -2061 lbn -305164 Repo

svn commit: r217769 - in head: sbin/dump sbin/fsck_ffs sbin/fsdb sbin/fsirand sbin/newfs usr.sbin/makefs usr.sbin/quot

2011-01-23 Thread Kirk McKusick
Author: mckusick Date: Mon Jan 24 06:17:05 2011 New Revision: 217769 URL: http://svn.freebsd.org/changeset/base/217769 Log: The dump, fsck_ffs, fsdb, fsirand, newfs, makefs, and quot utilities include sys/time.h instead of time.h. This include is incorrect as per the manpages for the APIs an

svn commit: r218726 - head/sbin/newfs

2011-02-15 Thread Kirk McKusick
Author: mckusick Date: Wed Feb 16 06:00:27 2011 New Revision: 218726 URL: http://svn.freebsd.org/changeset/base/218726 Log: Add the -j option to enable soft updates journaling when creating a new file system. Reviewed by: Kostik Belousov Modified: head/sbin/newfs/newfs.8 head/sbin/n

svn commit: r223018 - head/sys/ufs/ffs

2011-06-12 Thread Kirk McKusick
Author: mckusick Date: Sun Jun 12 18:46:48 2011 New Revision: 223018 URL: http://svn.freebsd.org/changeset/base/223018 Log: Disable the soft updates journaling after a filesystem is successfully downgraded to read-only. It will be restarted if the filesystem is upgraded back to read-write.

svn commit: r223020 - in head/sys/ufs: ffs ufs

2011-06-12 Thread Kirk McKusick
Author: mckusick Date: Sun Jun 12 19:27:05 2011 New Revision: 223020 URL: http://svn.freebsd.org/changeset/base/223020 Log: Update to soft updates journaling to properly track freed blocks that get claimed by snapshots. Submitted by: Jeff Roberson Tested by:Peter Holm Modified: h

svn commit: r223105 - head/sys/ufs/ffs

2011-06-14 Thread Kirk McKusick
Author: mckusick Date: Wed Jun 15 06:13:08 2011 New Revision: 223105 URL: http://svn.freebsd.org/changeset/base/223105 Log: Missing cleanup case after completion of a snapshot vnode write claiming a released block. Submitted by: Jeff Roberson Tested by:Peter Holm Modified: head/s

svn commit: r223114 - head/sys/ufs/ffs

2011-06-15 Thread Kirk McKusick
Author: mckusick Date: Wed Jun 15 18:05:08 2011 New Revision: 223114 URL: http://svn.freebsd.org/changeset/base/223114 Log: With the restructuring of the block reclaimation code, the notification messages for a filesystem being out of space need to be moved so that they do not print out unti

svn commit: r223127 - head/sys/ufs/ffs

2011-06-15 Thread Kirk McKusick
Author: mckusick Date: Wed Jun 15 23:19:09 2011 New Revision: 223127 URL: http://svn.freebsd.org/changeset/base/223127 Log: Ensure that filesystem metadata contained within persistent snapshots is always kept consistent. Suggested by: Jeff Roberson Modified: head/sys/ufs/ffs/ffs_alloc.

svn commit: r223169 - in head: sys/ufs/ffs usr.sbin/makefs/ffs

2011-06-16 Thread Kirk McKusick
Author: mckusick Date: Thu Jun 16 23:40:10 2011 New Revision: 223169 URL: http://svn.freebsd.org/changeset/base/223169 Log: Drop the include of from usr.sbin/makefs/ffs/ffs_bswap.c and usr.sbin/makefs/ffs/ffs_subr.c as they have no need of anything in that file. No other programs or libra

svn commit: r223268 - head/sys/ufs/ffs

2011-06-18 Thread Kirk McKusick
Author: mckusick Date: Sat Jun 18 21:10:03 2011 New Revision: 223268 URL: http://svn.freebsd.org/changeset/base/223268 Log: Fixed dereference of a NULL pointer. Reported by: Peter Holm Modified: head/sys/ufs/ffs/ffs_snapshot.c Modified: head/sys/ufs/ffs/ffs_snapshot.c =

svn commit: r223687 - head/sys/ufs/ffs

2011-06-29 Thread Kirk McKusick
Author: mckusick Date: Wed Jun 29 22:12:43 2011 New Revision: 223687 URL: http://svn.freebsd.org/changeset/base/223687 Log: Handle the FREEDEP case in softdep_sync_buf(). This fix failed to get added in -r223325. Submitted by: Peter Holm Modified: head/sys/ufs/ffs/ffs_softdep.c Modifi

svn commit: r223900 - in head/sys: geom ufs/ffs

2011-07-09 Thread Kirk McKusick
Author: mckusick Date: Sun Jul 10 00:41:31 2011 New Revision: 223900 URL: http://svn.freebsd.org/changeset/base/223900 Log: Allow disk partitions associated with UFS read-only mounted filesystems to be opened for writing. This functionality used to be special-cased for just the root filesyst

svn commit: r223901 - in head/sys: i386 kern

2011-07-09 Thread Kirk McKusick
Author: mckusick Date: Sun Jul 10 00:53:04 2011 New Revision: 223901 URL: http://svn.freebsd.org/changeset/base/223901 Log: Update tags build script Modified: head/sys/i386/Makefile head/sys/kern/Make.tags.inc Modified: head/sys/i386/Makefile ===

svn commit: r223902 - head/sys/ufs/ffs

2011-07-09 Thread Kirk McKusick
Author: mckusick Date: Sun Jul 10 05:34:49 2011 New Revision: 223902 URL: http://svn.freebsd.org/changeset/base/223902 Log: When first creating snapshots, we may free some blocks within it. These blocks should not have TRIM applied to them. Submitted by: Kostik Belousov Modified: head/

svn commit: r223918 - stable/8/sys/ufs/ffs

2011-07-10 Thread Kirk McKusick
Author: mckusick Date: Mon Jul 11 05:16:12 2011 New Revision: 223918 URL: http://svn.freebsd.org/changeset/base/223918 Log: MFC r223902: When first creating snapshots, we may free some blocks within it. These blocks should not have TRIM applied to them. Submitted by: Kostik Belousov Mo

svn commit: r224027 - head/sys/ufs/ffs

2011-07-14 Thread Kirk McKusick
Author: mckusick Date: Thu Jul 14 18:06:13 2011 New Revision: 224027 URL: http://svn.freebsd.org/changeset/base/224027 Log: Consistently check mount flag (MNTK_SUJ) rather than superblock flag (FS_SUJ) when determining whether to do journaling-based operations. The mount flag is set only whe

svn commit: r224040 - head/sbin/umount

2011-07-14 Thread Kirk McKusick
Author: mckusick Date: Thu Jul 14 20:17:05 2011 New Revision: 224040 URL: http://svn.freebsd.org/changeset/base/224040 Log: When using -A option (unmount all mounted filesystems), do not attempt to unmount /dev as it will always fail. Modified: head/sbin/umount/umount.c Modified: head/sbin

svn commit: r224059 - head/sbin/fsck_ffs

2011-07-15 Thread Kirk McKusick
Author: mckusick Date: Fri Jul 15 15:43:40 2011 New Revision: 224059 URL: http://svn.freebsd.org/changeset/base/224059 Log: Break out the pass 5 inode and block map updating into a separate function so that the function can be used by the journaling soft updates recovery. Modified: head/sbi

svn commit: r224061 - in head/sys/ufs: ffs ufs

2011-07-15 Thread Kirk McKusick
Author: mckusick Date: Fri Jul 15 16:20:33 2011 New Revision: 224061 URL: http://svn.freebsd.org/changeset/base/224061 Log: Add an FFS specific mount option to allow a filesystem checker (typically fsck_ffs) to register that it wishes to use FFS specific sysctl's to update the filesystem. Th

svn commit: r224063 - head/sys/i386

2011-07-15 Thread Kirk McKusick
Author: mckusick Date: Fri Jul 15 17:27:26 2011 New Revision: 224063 URL: http://svn.freebsd.org/changeset/base/224063 Log: Delete duplicate tags entry I introduced in -r223901. Submitted-by: John Baldwin Modified: head/sys/i386/Makefile Modified: head/sys/i386/Makefile

svn commit: r224272 - head/sys/ufs/ffs

2011-07-22 Thread Kirk McKusick
Author: mckusick Date: Fri Jul 22 18:03:33 2011 New Revision: 224272 URL: http://svn.freebsd.org/changeset/base/224272 Log: Default debugging error messages to off for journaled soft updates sysctls. Delete limiting on output of these sysctls. Approved by: re (kib) Modified: head/sys/u

svn commit: r224290 - in head/sys: fs/cd9660 fs/msdosfs fs/ntfs fs/smbfs kern sys

2011-07-24 Thread Kirk McKusick
Author: mckusick Date: Sun Jul 24 17:43:09 2011 New Revision: 224290 URL: http://svn.freebsd.org/changeset/base/224290 Log: This update changes the mnt_flag field in the mount structure from 32 bits to 64 bits and eliminates the unused mnt_xflag field. The existing mnt_flag field is complet

svn commit: r224294 - in head: sbin/mount sys/kern sys/sys sys/ufs/ffs sys/ufs/ufs

2011-07-24 Thread Kirk McKusick
Author: mckusick Date: Sun Jul 24 18:27:09 2011 New Revision: 224294 URL: http://svn.freebsd.org/changeset/base/224294 Log: Move the MNTK_SUJ flag in mnt_kern_flag to MNT_SUJ in mnt_flag so that it is visible to userland programs. This change enables the `mount' command with no arguments to

svn commit: r224503 - in head: sbin/mount sys/ufs/ffs sys/ufs/ufs

2011-07-29 Thread Kirk McKusick
Author: mckusick Date: Sat Jul 30 00:43:18 2011 New Revision: 224503 URL: http://svn.freebsd.org/changeset/base/224503 Log: Update to -r224294 to ensure that only one of MNT_SUJ or MNT_SOFTDEP is set so that mount can revert back to using MNT_NOWAIT when doing getmntinfo. Approved by: r

Re: svn commit: r219667 - head/usr.sbin/bsdinstall/partedit

2011-03-19 Thread Kirk McKusick
he fact that you could get out of space errors if you tried to replace files too quickly (e.g., during installworld). That problem was fixed about 2004. So there is no reason that root cannot have SU enabled. In particular, if you are going to default to a single filesystem, then root should definitely

Re: svn commit: r219667 - head/usr.sbin/bsdinstall/partedit

2011-03-20 Thread Kirk McKusick
> Date: Sun, 20 Mar 2011 13:25:20 -0700 > From: Doug Barton > To: Marius Strobl > CC: Kirk McKusick , > Nathan Whitehorn , svn-src-h...@freebsd.org, > Jeff Roberson , Gavin Atkinson , > svn-src-all@FreeBSD.org, src-committ...@freebsd.org, >

svn commit: r219895 - head/sys/ufs/ffs

2011-03-22 Thread Kirk McKusick
Author: mckusick Date: Wed Mar 23 05:13:54 2011 New Revision: 219895 URL: http://svn.freebsd.org/changeset/base/219895 Log: Add retry code analogous to the block allocation retry code to avoid running out of inodes. Reported by: Peter Holm Modified: head/sys/ufs/ffs/ffs_alloc.c head/

svn commit: r220374 - head/sys/ufs/ffs

2011-04-05 Thread Kirk McKusick
Author: mckusick Date: Tue Apr 5 21:26:05 2011 New Revision: 220374 URL: http://svn.freebsd.org/changeset/base/220374 Log: Be far more persistent in reclaiming blocks and inodes before giving up and declaring a filesystem out of space. Especially necessary when running on a small filesystem

svn commit: r222319 - head/sbin/newfs

2011-05-26 Thread Kirk McKusick
Author: mckusick Date: Thu May 26 18:22:49 2011 New Revision: 222319 URL: http://svn.freebsd.org/changeset/base/222319 Log: Raise the default blocksize for UFS/FFS filesystems from 16K to 32K and the default fragment size from 2K to 4K. The rational is that most disks are now running with

svn commit: r222334 - head/sys/ufs/ffs

2011-05-26 Thread Kirk McKusick
Author: mckusick Date: Thu May 26 23:56:58 2011 New Revision: 222334 URL: http://svn.freebsd.org/changeset/base/222334 Log: The check for whether a block is going to be claimed by a snapshot needs to happen before we notify the underlying layer that it is being freed. Modified: head/sys/u

svn commit: r222422 - head/sys/ufs/ffs

2011-05-28 Thread Kirk McKusick
Author: mckusick Date: Sat May 28 15:07:29 2011 New Revision: 222422 URL: http://svn.freebsd.org/changeset/base/222422 Log: Due to a lag in updating the fs_pendinginodes count, we cannot depend on it to decide whether we should try to reclaim inodes when we run short. Discovered by: Pet

svn commit: r222423 - head/sbin/newfs

2011-05-28 Thread Kirk McKusick
Author: mckusick Date: Sat May 28 15:14:50 2011 New Revision: 222423 URL: http://svn.freebsd.org/changeset/base/222423 Log: Update the manual page to reflect the new 32K/4K defaults. Reminded by: Ivan Voras Modified: head/sbin/newfs/newfs.8 Modified: head/sbin/newfs/newfs.8

svn commit: r222455 - stable/8/sys/ufs/ffs

2011-05-29 Thread Kirk McKusick
Author: mckusick Date: Sun May 29 18:09:14 2011 New Revision: 222455 URL: http://svn.freebsd.org/changeset/base/222455 Log: MFC r222334: The check for whether a block is going to be claimed by a snapshot needs to happen before we notify the underlying layer that it is being freed. Modifie

svn commit: r222724 - head/sys/ufs/ffs

2011-06-05 Thread Kirk McKusick
Author: mckusick Date: Sun Jun 5 22:36:30 2011 New Revision: 222724 URL: http://svn.freebsd.org/changeset/base/222724 Log: Grammer fix in comment. Eliminate one (of several) possible conflicting buffer locks when trying to reclaim blocks. Rest of fix to be incorporated as part of SUJ u

svn commit: r263628 - head/sys/ufs/ffs

2014-03-22 Thread Kirk McKusick
Author: mckusick Date: Sat Mar 22 11:26:39 2014 New Revision: 263628 URL: http://svnweb.freebsd.org/changeset/base/263628 Log: Update comment to explain search order reverted to historical order in -r254996. Suggested by: Pedro Giffuni MFC: 3 days Modified: head/sys/ufs/ffs

svn commit: r263629 - stable/10/sbin/fsck_ffs

2014-03-22 Thread Kirk McKusick
Author: mckusick Date: Sat Mar 22 11:43:35 2014 New Revision: 263629 URL: http://svnweb.freebsd.org/changeset/base/263629 Log: MFC of 263062: Avoid segment fault when attempting to clean up cylinder group buffer cache. PR: 187221 Submitted by: Petr Lampa Obtained f

svn commit: r263630 - stable/9/sbin/fsck_ffs

2014-03-22 Thread Kirk McKusick
Author: mckusick Date: Sat Mar 22 11:49:44 2014 New Revision: 263630 URL: http://svnweb.freebsd.org/changeset/base/263630 Log: MFC of 263062: Avoid segment fault when attempting to clean up cylinder group buffer cache. PR: 187221 Submitted by: Petr Lampa Obtained f

svn commit: r252183 - stable/9/sys/ufs/ffs

2013-06-24 Thread Kirk McKusick
Author: mckusick Date: Mon Jun 24 23:41:16 2013 New Revision: 252183 URL: http://svnweb.freebsd.org/changeset/base/252183 Log: MFC of 250891, 250892, 250894, 250895, 250897, and 250901 MFC 250891: Properly spell sentinel (not sintenel or sentinal). No functional changes. Spotted

svn commit: r252527 - head/sys/ufs/ffs

2013-07-02 Thread Kirk McKusick
Author: mckusick Date: Tue Jul 2 21:07:08 2013 New Revision: 252527 URL: http://svnweb.freebsd.org/changeset/base/252527 Log: Make better use of metadata area by avoiding using it for data blocks that no should no longer immediately follow their indirect blocks. MFC after:2 weeks Mo

svn commit: r253324 - stable/9/sys/ufs/ffs

2013-07-13 Thread Kirk McKusick
Author: mckusick Date: Sat Jul 13 18:09:42 2013 New Revision: 253324 URL: http://svnweb.freebsd.org/changeset/base/253324 Log: MFC of 252527: Make better use of metadata area by avoiding using it for data blocks that no should no longer immediately follow their indirect blocks. Revie

svn commit: r253341 - head/sys/ufs/ffs

2013-07-14 Thread Kirk McKusick
Author: mckusick Date: Sun Jul 14 18:44:33 2013 New Revision: 253341 URL: http://svnweb.freebsd.org/changeset/base/253341 Log: Update to comments describing block allocation policy. Submitted by: Bruce Evans Modified: head/sys/ufs/ffs/ffs_alloc.c Modified: head/sys/ufs/ffs/ffs_alloc.c =

svn commit: r248561 - in head/sys: kern sys ufs/ufs

2013-03-20 Thread Kirk McKusick
Author: mckusick Date: Wed Mar 20 17:57:00 2013 New Revision: 248561 URL: http://svnweb.freebsd.org/changeset/base/248561 Log: When renaming a directory from one parent directory to another, we need to call ufs_checkpath() to walk from our new location to the root of the filesystem to ensure

svn commit: r248623 - in head: sbin/dumpfs sbin/newfs sbin/tunefs sys/ufs/ffs

2013-03-22 Thread Kirk McKusick
Author: mckusick Date: Fri Mar 22 21:45:28 2013 New Revision: 248623 URL: http://svnweb.freebsd.org/changeset/base/248623 Log: The purpose of this change to the FFS layout policy is to reduce the running time for a full fsck. It also reduces the random access time for large files and speeds

svn commit: r248625 - head/sbin/fsck_ffs

2013-03-22 Thread Kirk McKusick
Author: mckusick Date: Fri Mar 22 21:50:43 2013 New Revision: 248625 URL: http://svnweb.freebsd.org/changeset/base/248625 Log: Speed up fsck by caching the cylinder group maps in pass1 so that they do not need to be read again in pass5. As this nearly doubles the memory requirement for fsck,

svn commit: r248626 - stable/9/sys/ufs/ffs

2013-03-22 Thread Kirk McKusick
Author: mckusick Date: Fri Mar 22 22:40:16 2013 New Revision: 248626 URL: http://svnweb.freebsd.org/changeset/base/248626 Log: MFS of 246289: For UFS2 i_blocks is unsigned. The current "sanity" check that it has gone below zero after the blocks in its inode are freed is a no-op which th

svn commit: r248628 - stable/9/sbin/fsck_ffs

2013-03-22 Thread Kirk McKusick
Author: mckusick Date: Fri Mar 22 22:50:48 2013 New Revision: 248628 URL: http://svnweb.freebsd.org/changeset/base/248628 Log: MFS of 246812: Update fsck_ffs buffer cache manager to use TAILQ macros. No functional changes. Modified: stable/9/sbin/fsck_ffs/fsck.h stable/9/sbin/fsck_ff

svn commit: r248639 - head/sbin/fsdb

2013-03-23 Thread Kirk McKusick
Author: mckusick Date: Sat Mar 23 07:57:30 2013 New Revision: 248639 URL: http://svnweb.freebsd.org/changeset/base/248639 Log: Fix the build after addition of cylinder group cacheing (r248625) Reported by: Glen Barber (gjb@) Pointy hat to: Kirk McKusick (mckusick@) Modified: head

svn commit: r248658 - in head/sbin: fsck_ffs fsdb

2013-03-23 Thread Kirk McKusick
Author: mckusick Date: Sat Mar 23 20:00:02 2013 New Revision: 248658 URL: http://svnweb.freebsd.org/changeset/base/248658 Log: Revert 248634 and 248643 (e.g., restoring 248625 and 248639). Build verified by: Glen Barber (gjb@) Modified: head/sbin/fsck_ffs/fsck.h head/sbin/fsck_ffs/fsut

svn commit: r248665 - in stable/9/sys: geom kern sys ufs/ffs

2013-03-23 Thread Kirk McKusick
Author: mckusick Date: Sat Mar 23 21:56:19 2013 New Revision: 248665 URL: http://svnweb.freebsd.org/changeset/base/248665 Log: MFC of 246876 and 246877 MFC: 246876: Add barrier write capability to the VFS buffer interface. A barrier write is a disk write request that tells the disk t

svn commit: r248691 - head/sbin/fsck_ffs

2013-03-24 Thread Kirk McKusick
Author: mckusick Date: Sun Mar 24 22:37:10 2013 New Revision: 248691 URL: http://svnweb.freebsd.org/changeset/base/248691 Log: Note that output is in seconds, not msec. KNF indentation. No functional change. No change to printf strings. No change to casting of printf arguments. Repo

svn commit: r248923 - in stable/8/sys: . amd64/amd64 dev/sound i386/i386 ufs/ffs

2013-03-29 Thread Kirk McKusick
Author: mckusick Date: Sat Mar 30 00:22:26 2013 New Revision: 248923 URL: http://svnweb.freebsd.org/changeset/base/248923 Log: MFC of 246289: For UFS2 i_blocks is unsigned. The current "sanity" check that it has gone below zero after the blocks in its inode are freed is a no-op which th

svn commit: r248924 - in stable/8/sbin: fsck_ffs fsdb

2013-03-29 Thread Kirk McKusick
Author: mckusick Date: Sat Mar 30 00:33:46 2013 New Revision: 248924 URL: http://svnweb.freebsd.org/changeset/base/248924 Log: MFC of 246812 and 246823: MFC 246812: Update fsck_ffs buffer cache manager to use TAILQ macros. No functional changes. MFC 246823: Remove write onl

svn commit: r248936 - in stable/8/sys: . amd64/amd64 dev/sound geom i386/i386 kern sys ufs/ffs

2013-03-30 Thread Kirk McKusick
Author: mckusick Date: Sat Mar 30 20:57:35 2013 New Revision: 248936 URL: http://svnweb.freebsd.org/changeset/base/248936 Log: MFC of 246876, 246877, and 247387: MFC reviewed by: kib MFC 246876: Add barrier write capability to the VFS buffer interface. A barrier write is a disk wri

svn commit: r249064 - head/sys/ufs/ffs

2013-04-03 Thread Kirk McKusick
Author: mckusick Date: Wed Apr 3 19:26:32 2013 New Revision: 249064 URL: http://svnweb.freebsd.org/changeset/base/249064 Log: The code in clear_remove() and clear_inodedeps() skips one entry in the pagedep and inodedep hash tables. An entry in the table is skipped because 'pagedep_hash' and

svn commit: r249597 - stable/9/sys/ufs/ffs

2013-04-17 Thread Kirk McKusick
Author: mckusick Date: Thu Apr 18 00:12:32 2013 New Revision: 249597 URL: http://svnweb.freebsd.org/changeset/base/249597 Log: MFC of 249064: The code in clear_remove() and clear_inodedeps() skips one entry in the pagedep and inodedep hash tables. An entry in the table is skipped becaus

svn commit: r249598 - stable/8/sys/ufs/ffs

2013-04-17 Thread Kirk McKusick
Author: mckusick Date: Thu Apr 18 00:14:51 2013 New Revision: 249598 URL: http://svnweb.freebsd.org/changeset/base/249598 Log: MFC of 249064: The code in clear_remove() and clear_inodedeps() skips one entry in the pagedep and inodedep hash tables. An entry in the table is skipped becaus

svn commit: r249599 - in stable/9/sys: kern sys ufs/ufs

2013-04-17 Thread Kirk McKusick
Author: mckusick Date: Thu Apr 18 00:53:47 2013 New Revision: 249599 URL: http://svnweb.freebsd.org/changeset/base/249599 Log: MFC of 248561: When renaming a directory from one parent directory to another, we need to call ufs_checkpath() to walk from our new location to the root of the

svn commit: r249782 - stable/9/sys/ufs/ffs

2013-04-22 Thread Kirk McKusick
Author: mckusick Date: Mon Apr 22 23:59:00 2013 New Revision: 249782 URL: http://svnweb.freebsd.org/changeset/base/249782 Log: MFC of 242520: When a file is first being written, the dynamic block reallocation (implemented by ffs_reallocblks_ufs[12]) relocates the file's blocks so as to

svn commit: r249785 - in stable/9/sbin: dumpfs newfs tunefs

2013-04-22 Thread Kirk McKusick
Author: mckusick Date: Tue Apr 23 01:09:22 2013 New Revision: 249785 URL: http://svnweb.freebsd.org/changeset/base/249785 Log: MFC of 248623: The purpose of this change to the FFS layout policy is to reduce the running time for a full fsck. It also reduces the random access time for lar

svn commit: r249788 - in stable/9/sbin: fsck_ffs fsdb

2013-04-22 Thread Kirk McKusick
paper can also be downloaded from: www.mckusick.com/publications/faster_fsck.pdf. Reviewed by: kib Tested by: Peter Holm MFC of 248639: Fix the build after addition of cylinder group cacheing (r248625) Reported by: Glen Barber (gjb@) Pointy hat to: Kirk McKusick (mckusick@

svn commit: r249789 - head/sbin/tunefs

2013-04-22 Thread Kirk McKusick
Author: mckusick Date: Tue Apr 23 06:37:50 2013 New Revision: 249789 URL: http://svnweb.freebsd.org/changeset/base/249789 Log: Fix error check. Submitted by: Andrey Chernov (ache@) MFC after: 3 days Modified: head/sbin/tunefs/tunefs.c Modified: head/sbin/tunefs/tunefs.c ==

svn commit: r262488 - head/sbin/fsck_ffs

2014-02-25 Thread Kirk McKusick
Author: mckusick Date: Tue Feb 25 18:25:27 2014 New Revision: 262488 URL: http://svnweb.freebsd.org/changeset/base/262488 Log: Arguments for malloc and calloc should be size_t, not int. Use proper bounds check when trying to free cached memory. Spotted by: Xin Li Tested by: Dmitry Siva

svn commit: r263062 - head/sbin/fsck_ffs

2014-03-11 Thread Kirk McKusick
Author: mckusick Date: Wed Mar 12 01:28:21 2014 New Revision: 263062 URL: http://svnweb.freebsd.org/changeset/base/263062 Log: Avoid segment fault when attempting to clean up cylinder group buffer cache. PR: 187221 Submitted by: Petr Lampa Obtained from:Petr Lampa

svn commit: r253973 - head/sys/ufs/ffs

2013-08-05 Thread Kirk McKusick
Author: mckusick Date: Mon Aug 5 22:01:16 2013 New Revision: 253973 URL: http://svnweb.freebsd.org/changeset/base/253973 Log: To better understand performance problems with journalled soft updates, we need to collect the highest level of allocation for each of the different soft update depe

svn commit: r253974 - head/sys/ufs/ffs

2013-08-05 Thread Kirk McKusick
Author: mckusick Date: Mon Aug 5 22:02:45 2013 New Revision: 253974 URL: http://svnweb.freebsd.org/changeset/base/253974 Log: With the addition of journalled soft updates, the "newblk" structures persist much longer than previously. Historically we had at most 100 entries; now the count may

svn commit: r253998 - head/sys/ufs/ufs

2013-08-06 Thread Kirk McKusick
Author: mckusick Date: Tue Aug 6 16:50:05 2013 New Revision: 253998 URL: http://svnweb.freebsd.org/changeset/base/253998 Log: This bug fix is in a code path in rename taken when there is a collision between a rename and an open system call for the same target file. Here, rename releases its

svn commit: r254995 - head/sys/ufs/ffs

2013-08-28 Thread Kirk McKusick
Author: mckusick Date: Wed Aug 28 17:38:05 2013 New Revision: 254995 URL: http://svnweb.freebsd.org/changeset/base/254995 Log: A performance problem was reported in PR kern/181226: I have 25TB Dell PERC 6 RAID5 array. When it becomes almost full (10-20GB free), processes which wri

svn commit: r254996 - head/sys/ufs/ffs

2013-08-28 Thread Kirk McKusick
Author: mckusick Date: Wed Aug 28 17:46:32 2013 New Revision: 254996 URL: http://svnweb.freebsd.org/changeset/base/254996 Log: In looking at block layouts as part of fixing filesystem block allocations under low free-space conditions (-r254995), determine that old block-preference search ord

svn commit: r255097 - head/sys/vm

2013-08-31 Thread Kirk McKusick
Author: mckusick Date: Sat Aug 31 15:40:15 2013 New Revision: 255097 URL: http://svnweb.freebsd.org/changeset/base/255097 Log: Fix bug introduced in rewrite of keg_free_slab in -r251894. The consequence of the bug is that fini calls are not done when a slab is freed by a call-back from the p

svn commit: r255103 - stable/9/sys/ufs/ffs

2013-08-31 Thread Kirk McKusick
Author: mckusick Date: Sat Aug 31 17:33:25 2013 New Revision: 255103 URL: http://svnweb.freebsd.org/changeset/base/255103 Log: MFC of 253973: To better understand performance problems with journalled soft updates, we need to collect the highest level of allocation for each of the differ

svn commit: r255104 - stable/9/sys/ufs/ufs

2013-08-31 Thread Kirk McKusick
Author: mckusick Date: Sat Aug 31 17:38:49 2013 New Revision: 255104 URL: http://svnweb.freebsd.org/changeset/base/255104 Log: MFC of 253998: This bug fix is in a code path in rename taken when there is a collision between a rename and an open system call for the same target file. Here,

svn commit: r255231 - releng/9.2/sys/ufs/ufs

2013-09-04 Thread Kirk McKusick
Author: mckusick Date: Thu Sep 5 04:00:48 2013 New Revision: 255231 URL: http://svnweb.freebsd.org/changeset/base/255231 Log: MFS of 255104: MFC of 253998: This bug fix is in a code path in rename taken when there is a collision between a rename and an open system call for the same t

svn commit: r255494 - stable/9/sys/ufs/ffs

2013-09-12 Thread Kirk McKusick
Author: mckusick Date: Thu Sep 12 19:36:04 2013 New Revision: 255494 URL: http://svnweb.freebsd.org/changeset/base/255494 Log: MFC of 254995: A performance problem was reported in PR kern/181226: I have 25TB Dell PERC 6 RAID5 array. When it becomes almost full (10-20GB free),

svn commit: r255681 - stable/8/sys/ufs/ufs

2013-09-18 Thread Kirk McKusick
Author: mckusick Date: Thu Sep 19 00:18:25 2013 New Revision: 255681 URL: http://svnweb.freebsd.org/changeset/base/255681 Log: MFC of 253998: This bug fix is in a code path in rename taken when there is a collision between a rename and an open system call for the same target file. Here,

svn commit: r260033 - stable/10/sys/ufs/ffs

2013-12-28 Thread Kirk McKusick
Author: mckusick Date: Sun Dec 29 07:26:48 2013 New Revision: 260033 URL: http://svnweb.freebsd.org/changeset/base/260033 Log: MFC of 258789: We needlessly panic when trying to flush MKDIR_PARENT dependencies. We had previously tried to flush all MKDIR_PARENT dependencies (and all the N

svn commit: r260034 - stable/9/sys/ufs/ffs

2013-12-28 Thread Kirk McKusick
Author: mckusick Date: Sun Dec 29 07:29:45 2013 New Revision: 260034 URL: http://svnweb.freebsd.org/changeset/base/260034 Log: MFC of 258789: We needlessly panic when trying to flush MKDIR_PARENT dependencies. We had previously tried to flush all MKDIR_PARENT dependencies (and all the N

svn commit: r260078 - in stable/10/sys/ufs: ffs ufs

2013-12-29 Thread Kirk McKusick
Author: mckusick Date: Mon Dec 30 05:22:22 2013 New Revision: 260078 URL: http://svnweb.freebsd.org/changeset/base/260078 Log: MFC of 256801, 256803, 256808, 256812, 256817, 256845, and 256860. This set of changes puts in place the infrastructure to allow soft updates to be multi-threaded. I

svn commit: r260079 - head/sys/ufs/ufs

2013-12-29 Thread Kirk McKusick
Author: mckusick Date: Mon Dec 30 06:19:42 2013 New Revision: 260079 URL: http://svnweb.freebsd.org/changeset/base/260079 Log: Properly handle unsigned comparison. MFC after: 2 weeks Modified: head/sys/ufs/ufs/ufs_quota.c Modified: head/sys/ufs/ufs/ufs_quota.c ==

svn commit: r260088 - head/sys/ufs/ffs

2013-12-30 Thread Kirk McKusick
Author: mckusick Date: Mon Dec 30 17:04:24 2013 New Revision: 260088 URL: http://svnweb.freebsd.org/changeset/base/260088 Log: Fine tune filesystem block allocations under low free-space conditions (-r254995) based on further operational experience. Submitted by: Dmitry Sivachenko Fix

svn commit: r260827 - stable/10/sys/ufs/ufs

2014-01-17 Thread Kirk McKusick
Author: mckusick Date: Fri Jan 17 16:17:07 2014 New Revision: 260827 URL: http://svnweb.freebsd.org/changeset/base/260827 Log: MFC of 260079: Properly handle unsigned comparison. Modified: stable/10/sys/ufs/ufs/ufs_quota.c Directory Properties: stable/10/ (props changed) Modified: s

  1   2   3   4   5   6   >