Re: softdep flag lost when updating mountpoint

2013-06-01 Thread Patrik Lundin
On Fri, May 31, 2013 at 06:45:18AM +0200, Patrik Lundin wrote: > > I am currently testing this patch, I will report back once I have > some results. > So have have tried to stress test the patch, and while it seems to superficially work it doesnt really seem stable. I have written a rather silly

Re: softdep flag lost when updating mountpoint

2013-05-30 Thread Patrik Lundin
On Tue, May 28, 2013 at 04:51:34PM -0400, Ted Unangst wrote: > > Indeed, I think maybe this is ok. > > Index: ffs_vfsops.c > === > RCS file: /cvs/src/sys/ufs/ffs/ffs_vfsops.c,v > retrieving revision 1.136 > diff -u -p -r1.136 ffs_vfs

Re: softdep flag lost when updating mountpoint

2013-05-28 Thread Ted Unangst
On Tue, May 28, 2013 at 20:54, Alexander Hall wrote: > I do the 'mount -uw / do_stuff / mount -ur' dance as part of my backup > system in order to minimize fsck time and disk corruption in case of > unexpected power outages etc. I don't have softdep on those, but that's > not really the point. >

Re: softdep flag lost when updating mountpoint

2013-05-28 Thread Alexander Hall
On 05/28/13 19:54, Ted Unangst wrote: On Tue, May 28, 2013 at 19:37, Patrik Lundin wrote: However, once I update it to read-only again the softdep flag is removed: # mount -ur /usr/src /dev/sd0i on /usr/src type ffs (local, nodev, nosuid, read-only) The softdep flag is cleared when you change

Re: softdep flag lost when updating mountpoint

2013-05-28 Thread Patrik Lundin
On Tue, May 28, 2013 at 01:54:50PM -0400, Ted Unangst wrote: > > The softdep flag is cleared when you change a mount to read only. What > would a read only softdep filesystem do? > I was only surprised that updating a filesystem to read-only and back to read/write would result in another state th

Re: softdep flag lost when updating mountpoint

2013-05-28 Thread Ted Unangst
On Tue, May 28, 2013 at 19:37, Patrik Lundin wrote: > > However, once I update it to read-only again the softdep flag is > removed: > # mount -ur /usr/src > /dev/sd0i on /usr/src type ffs (local, nodev, nosuid, read-only) The softdep flag is cleared when you change a mount to read only. What woul

softdep flag lost when updating mountpoint

2013-05-28 Thread Patrik Lundin
Hello, I have a simple fileserver that performs a nightly backup to an extra disk mounted at /backup using rsync with --link-dest. The backup disk is normally mounted read-only except when rsync is running. A few days ago i figured it would be interesting to enable softdeps on the backup disk to