From mboxrd@z Thu Jan 1 00:00:00 1970 From: Artem Bityutskiy Subject: Re: [PATCH v3] introduce sys_syncfs to sync a single file system Date: Mon, 14 Mar 2011 07:52:54 +0200 Message-ID: <1300081974.2332.14.camel@koala> References: <201103111255.44979.arnd@arndb.de> <4D7AC0FE.8070806@gmail.com> <1d4d1b7ae64da97f44cad0e2bda4f832.squirrel@webmail.greenhost.nl> <1299957736.2332.4.camel@koala> <3cc2c5c6fa6b3bd384017ae95a4241ab.squirrel@webmail.greenhost.nl> Reply-To: dedekind1-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: QUOTED-PRINTABLE Cc: Ric Wheeler , Arnd Bergmann , Sage Weil , linux-fsdevel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, linux-kernel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, "Aneesh Kumar K. V" , Jonathan Nieder , akpm-de/tnXTf+JLsfHDXvbKv3WD2FQJk+8+b@public.gmane.org, linux-api-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, mtk.manpages-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org, viro-RmSDqhL/yNMiFSDQTTA3OLVCufUGDwFn@public.gmane.org, hch-jcswGhMUV9g@public.gmane.org, l@jasper.es To: Indan Zupancic Return-path: In-Reply-To: <3cc2c5c6fa6b3bd384017ae95a4241ab.squirrel-2RFepEojUI3wYrDfM2ltn5vKXLoBo5SK@public.gmane.org> Sender: linux-api-owner-u79uwXL29TY76Z2rM5mHXA@public.gmane.org List-Id: linux-fsdevel.vger.kernel.org On Mon, 2011-03-14 at 02:38 +0100, Indan Zupancic wrote: > > I had a program, actually a set of programs, which test a file-syst= em. > > And this set of programs needed such a feature quite a lot, to sync= the > > FS which is being tested and nothing else - for both performance re= asons > > and to put more stress to the FS under testing. We used -o remount,= rw > > for this - but this forced us to run under root. >=20 > You could use a tiny setuid root helper binary that does the remount = trick. Yes, but I think this is not elegant solution. --=20 Best Regards, Artem Bityutskiy (=D0=91=D0=B8=D1=82=D1=8E=D1=86=D0=BA=D0=B8=D0=B9 =D0=90= =D1=80=D1=82=D1=91=D0=BC)