From owner-freebsd-fs@freebsd.org Tue Jun 28 07:17:30 2016 Return-Path: Delivered-To: freebsd-fs@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 59C47B8556B for ; Tue, 28 Jun 2016 07:17:30 +0000 (UTC) (envelope-from etnapierala@gmail.com) Received: from mail-wm0-x231.google.com (mail-wm0-x231.google.com [IPv6:2a00:1450:400c:c09::231]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id DCED12111 for ; Tue, 28 Jun 2016 07:17:29 +0000 (UTC) (envelope-from etnapierala@gmail.com) Received: by mail-wm0-x231.google.com with SMTP id r201so13216504wme.1 for ; Tue, 28 Jun 2016 00:17:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:date:from:to:cc:subject:message-id:mail-followup-to :references:mime-version:content-disposition:in-reply-to:user-agent; bh=YjRHhwpV7Gaksw1Y4r/Ij7+DeA9pVxpO6yjMsS/q1RE=; b=KkIFudrUzWRyt5AwQM9ZWdpkDhMr2fSOam/z7P94l2zZrrkMvLm0DQZqpe9ABqWNPV n+zZOLLDUXUxLKJsOXFYdjszE+f0x6wYj/BMRW2w7UbG5T5wBineGVPj40RN/MJvEBcB uFljysboCQBj8YpqsvAKeH9Ks5RdL2jRLRPQkyvgkZSMqlWKuyQPfOHFbMSoM7lX0cGm SJ4OGho6dgm/750ZYElpW/7tgZW1ZCZA4lPVp0ChYxHER+XjzbOZZtO9EP1WW3AZCOto 2Vp2kBDGm0IpfDWHmPl3kCydV3WVjbpKYhKkNvROT/CgO6Ye48qZ+fxnvrV3EVBM1VyG 0JGQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:sender:date:from:to:cc:subject:message-id :mail-followup-to:references:mime-version:content-disposition :in-reply-to:user-agent; bh=YjRHhwpV7Gaksw1Y4r/Ij7+DeA9pVxpO6yjMsS/q1RE=; b=PCP/ZuSTEwJ5/11m3FjIysPxY1r6XG8wfa6CfBgXlA6YuyFp3B1tWmPgIWetqZ3ktN lelOqDYVp04qm+I0sYOQLJC89zDxOxhIK5IthfRU0JD+iH8HEO1DVDX691loR1EPEOO/ dkFwd5uqSS7WK5Mc+A+mJSKKavQ997W/OJLGhIefk5jXia22qy924tDBbdVLYwWZddoh o/5ju5DOipkkNzxFqISsdDY/y5mfP9IBJMlgVWFS1k/zwPgO3PM6c3xSSFBZDR0VpRgv Eyzi9NhGVrSFz9T8lW8F//yb58go/WenEVZousOqb4rZqLXm6pxMbQuU3xtQLapAFAOV YSqw== X-Gm-Message-State: ALyK8tLv7LI2W6ymERHBTHbdEaubQ1tUmLwqeJ+ko4cAc+mVFlX5o/cQvtZeOTxACRkWNw== X-Received: by 10.194.96.208 with SMTP id du16mr1647633wjb.0.1467098247374; Tue, 28 Jun 2016 00:17:27 -0700 (PDT) Received: from brick (eud22.neoplus.adsl.tpnet.pl. [83.20.175.22]) by smtp.gmail.com with ESMTPSA id i14sm317138wmg.7.2016.06.28.00.17.25 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 28 Jun 2016 00:17:26 -0700 (PDT) Sender: =?UTF-8?Q?Edward_Tomasz_Napiera=C5=82a?= Date: Tue, 28 Jun 2016 08:54:32 +0200 From: Edward Tomasz =?utf-8?Q?Napiera=C5=82a?= To: Hongjiang Zhang Cc: "freebsd-fs@freebsd.org" Subject: Re: ufs freeze does not work Message-ID: <20160628065432.GA20716@brick> Mail-Followup-To: Hongjiang Zhang , "freebsd-fs@freebsd.org" References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.6.1 (2016-04-27) X-BeenThere: freebsd-fs@freebsd.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: Filesystems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 28 Jun 2016 07:17:30 -0000 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.