From: dexen deVries <dexen.devries-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
To: linux-nilfs-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
Subject: Re: FIBMAP ioctl missing
Date: Fri, 25 Feb 2011 12:45:30 +0100 [thread overview]
Message-ID: <201102251245.31148.dexen.devries@gmail.com> (raw)
In-Reply-To: <20110225.203423.220041947.ryusuke-sG5X7nlA6pw@public.gmane.org>
On Friday 25 of February 2011 12:34:23 you wrote:
> I guess pinning files on the device is possible in some way. But
> Supporting FIBMAP, which internally means supporting iops->bmap vfs
> interface, sounds more delicate than FIEMAP because it is actually
> used to determine block location for raw-write access. The swapfile
> is an example of that.
>
> Strictly, FIEMAP has the same risk, but in practice, we are using it
> for more harmless purposes such like analyzing fragmentation or giving
> hint to read-ahead tools.
As a sidenote, it seems hdparm has that `--fibmap' subcommand, but it actually
issues FIEMAP rather than FIBMAP ioctl.
> If we can safely disable a swapfile on filesystem and we can widely
> share the basic premise that "writing to the block location acquired
> by FIBMAP is a very dangerous thing for log-structured filesystems or
> COW filesystems", we could add it.
Perhaps it would be enough if FIBMAP implementation for NILFS checked if the
file has a `pin-it-down' attribute and only then returned anything other than
EINVAL.
Regarding pinning a file to physical location on a device: if a file is part of
a snapshot, does its data or metadata ever get moved?
--
dexen deVries
[[[↓][→]]]
> how does a C compiler get to be that big? what is all that code doing?
iterators, string objects, and a full set of C macros that ensure
boundary conditions and improve interfaces.
ron minnich, in response to Charles Forsyth
http://9fans.net/archive/2011/02/90
--
To unsubscribe from this list: send the line "unsubscribe linux-nilfs" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
next prev parent reply other threads:[~2011-02-25 11:45 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-02-24 22:34 FIBMAP ioctl missing dexen deVries
[not found] ` <201102242334.38044.dexen.devries-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2011-02-25 0:21 ` Jérôme Poulin
2011-02-25 8:02 ` dexen deVries
[not found] ` <201102250902.46443.dexen.devries-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2011-02-25 11:34 ` Ryusuke Konishi
[not found] ` <20110225.203423.220041947.ryusuke-sG5X7nlA6pw@public.gmane.org>
2011-02-25 11:45 ` dexen deVries [this message]
[not found] ` <201102251244.06554.dexen.devries@gmail.com>
[not found] ` <201102251244.06554.dexen.devries-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2011-02-25 14:30 ` Ryusuke Konishi
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=201102251245.31148.dexen.devries@gmail.com \
--to=dexen.devries-re5jqeeqqe8avxtiumwx3w@public.gmane.org \
--cc=linux-nilfs-u79uwXL29TY76Z2rM5mHXA@public.gmane.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.