linux-fsdevel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Jan Kara <jack@suse.cz>
To: Jeff Layton <jlayton@kernel.org>
Cc: Jan Kara <jack@suse.cz>, linux-fsdevel@vger.kernel.org
Subject: Re: Deprecated mandatory file locking
Date: Fri, 16 Aug 2019 17:31:49 +0200	[thread overview]
Message-ID: <20190816153149.GD3041@quack2.suse.cz> (raw)
In-Reply-To: <01b6620186a18b167ca1bab1fadb2dbaffdd8379.camel@kernel.org>

On Thu 15-08-19 15:18:45, Jeff Layton wrote:
> On Wed, 2019-08-14 at 19:46 +0200, Jan Kara wrote:
> > Resending to proper Jeff's address...
> > 
> > On Wed 14-08-19 19:33:45, Jan Kara wrote:
> > > Hello Jeff,
> > > 
> > > we've got a report from user
> > > (https://bugzilla.suse.com/show_bug.cgi?id=1145007) wondering why his fstab
> > > entry (for root filesystem!) using 'mand' mount option stopped working.
> > > Now I understand your rationale in 9e8925b67a "locks: Allow disabling
> > > mandatory locking at compile time" but I guess there's some work to do wrt
> > > documentation. At least mount(8) manpage could mention that mandatory
> > > locking is broken and may be disabled referencing the rationale in fcntl
> > > manpage? Or the kernel could mention something in the log about failing
> > > mount because of 'mand' mount option?  What do you think? Because it took
> > > me some code searching to understand why the mount is actually failing
> > > which we can hardly expect from a normal sysadmin...
> > > 
> > > 								Honza
> 
> Wow, I think this is the first actual user fallout we've ever had from
> that change! Why was he setting that option? Does he actually use
> mandatory locking?

Yeah, reportedly they had an application that required mandatory locking.
But they don't use it anymore so they just removed the mount option.

> I think a pr_notice() or pr_warn() at mount time when someone tries to
> use it sounds like a very reasonable thing to do. Perhaps we can just
> stick one in may_mandlock()?

Yeah, sounds reasonable to me.

> I'll draft up a patch, and also update
> Documentation/filesystems/mandatory-locking.txt with the current
> situation.

Thanks!

								Honza
-- 
Jan Kara <jack@suse.com>
SUSE Labs, CR

  reply	other threads:[~2019-08-16 15:31 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-08-14 17:33 Deprecated mandatory file locking Jan Kara
2019-08-14 17:46 ` Jan Kara
2019-08-15 19:18   ` Jeff Layton
2019-08-16 15:31     ` Jan Kara [this message]
2019-11-07 16:15       ` Jan Kara
2019-11-07 18:34         ` Jeff Layton
2019-11-08 10:37           ` Jan Kara

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20190816153149.GD3041@quack2.suse.cz \
    --to=jack@suse.cz \
    --cc=jlayton@kernel.org \
    --cc=linux-fsdevel@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).