From: Theodore Ts'o <tytso@mit.edu>
To: "Darrick J. Wong" <darrick.wong@oracle.com>
Cc: Ext4 Developers List <linux-ext4@vger.kernel.org>
Subject: Re: [RFC/PATCH 3/3] ext4: add EXT4_IOC_GOINGDOWN ioctl
Date: Thu, 2 Feb 2017 21:22:24 -0500 [thread overview]
Message-ID: <20170203022224.idwexzwnqmbyskbj@thunk.org> (raw)
In-Reply-To: <20170203000204.GK14029@birch.djwong.org>
On Thu, Feb 02, 2017 at 04:02:04PM -0800, Darrick J. Wong wrote:
> >
> > +#define EXT4_IOC_GOiNGDOWN _IOR ('X', 125, __u32)
>
> Lowercase 'i'?
Yeah, oops. Already fixed.
> ISTR Dave asking if we could rename it IOC_SHUTDOWN way back when f2fs
> was trying to implement it.
Yeah, I decided to evade the whole discussion about which names should
land in include/uapi/fs.h. (e.g., xxx_GOING_FLAGS_LOGFLUSH vs
xxx_GOING_FLAGS_METAFLUsh, etc.)
Once we have names that everyone is happy with, it'll be simple enough
to do the rename the identifiers.
>
> /me wonders if mount -o errors=shutdown follows from this? :)
>
> (Something a little less drastic than errors=panic that stops everything
> in its tracks.)
Yeah, I was thinking about that. We have errors=readonly already,
which is actually not _that_ different from errors=shutdown. (I
noticed for example that xfs doesn't have a shutdown check in
xfs_vm_readpage and and xfs_vm_readpages.)
One of the things we probably should do is make clear what are the
semantics with FS_IOC_SHUTDOWN. For example, should readpages()
return an error on a shutdown file system, or not?
And as I've observed already, there are a number of tests in xfstsests
that are enabled when the fs supports shutdown that are very specific
to how delayed allocation and writes are handled. How much this needs
to be fundamental to the shutdown API? A lot of this depends on which
applications would actually be using shutdown, and whether they care
about what happens with a write followed by truncate followed
shutdown.
- Ted
next prev parent reply other threads:[~2017-02-03 2:22 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-02-02 22:59 [RFC/PATCH 0/3] Implement XFS's GOINGDOWN ioctl for ext4 Theodore Ts'o
2017-02-02 22:59 ` [RFC/PATCH 1/3] ext4: rename s_resize_flags to s_ext4_flags Theodore Ts'o
2017-02-02 22:59 ` [RFC/PATCH 2/3] ext4: add shutdown bit and check for it Theodore Ts'o
2017-02-02 22:59 ` [RFC/PATCH 3/3] ext4: add EXT4_IOC_GOINGDOWN ioctl Theodore Ts'o
2017-02-03 0:02 ` Darrick J. Wong
2017-02-03 2:22 ` Theodore Ts'o [this message]
2017-02-03 7:05 ` [RFC/PATCH 0/3] Implement XFS's GOINGDOWN ioctl for ext4 Amir Goldstein
2017-02-03 15:09 ` Theodore Ts'o
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=20170203022224.idwexzwnqmbyskbj@thunk.org \
--to=tytso@mit.edu \
--cc=darrick.wong@oracle.com \
--cc=linux-ext4@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