Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 28 Jun 2016 20:55:23 +0200
From:      Edward Tomasz =?utf-8?Q?Napiera=C5=82a?= <trasz@FreeBSD.org>
To:        Hongjiang Zhang <honzhan@microsoft.com>
Cc:        "freebsd-fs@freebsd.org" <freebsd-fs@freebsd.org>
Subject:   Re: ufs freeze does not work
Message-ID:  <20160628185523.GA82035@brick>
In-Reply-To: <SN2PR03MB2224903F61C7DD576EDDB05DB5220@SN2PR03MB2224.namprd03.prod.outlook.com>
References:  <CO2PR03MB2215FAA1AB86A669039B9540B5210@CO2PR03MB2215.namprd03.prod.outlook.com> <20160628065432.GA20716@brick> <SN2PR03MB2224903F61C7DD576EDDB05DB5220@SN2PR03MB2224.namprd03.prod.outlook.com>

next in thread | previous in thread | raw e-mail | index | archive | help
As I said, the suspension is released when the ufssuspend file descriptor
gets closed - which is what happens when the calling process exits.  It's
a protection mechanism, to avoid the situation where the process malfunction
(eg a crash) would leave the system in unrecoverable (suspended) state.

You probably want your process to just execute another one, and wait until
it exits.

On 0628T0733, Hongjiang Zhang wrote:
> I run "./freeze -f", the program should freeze the "/" file partition, but I can still write something to "/tmp" folder.
> 
> -----Original Message-----
> From: Edward Tomasz NapieraƂa [mailto:etnapierala@gmail.com] On Behalf Of Edward Tomasz Napierala
> Sent: Tuesday, June 28, 2016 2:55 PM
> To: Hongjiang Zhang <honzhan@microsoft.com>
> Cc: freebsd-fs@freebsd.org
> Subject: Re: ufs freeze does not work
> 
> On 0627T0815, Hongjiang Zhang via freebsd-fs wrote:
> > Hi all,
> > 
> > I wrote a test to freeze ufs, but it does not work even if the ioctl returns successful. What is the problem?
> 
> What do you mean by 'does not work'?  What happens, and what did you expect to happen?
> 
> Regarding your example - remember that the filesystem gets automatically unsuspended as soon as you close the /dev/ufssuspend file descriptor.
> 



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20160628185523.GA82035>