From: Patrick Caulfield <patrick@tykepenguin.com>
To: linux-lvm@sistina.com
Subject: Re: [linux-lvm] LVM and inactive snapshots.
Date: Fri, 15 Dec 2000 10:00:28 +0000 [thread overview]
Message-ID: <20001215100028.B526@tykepenguin.com> (raw)
In-Reply-To: <Pine.OSF.4.21.0012141509060.4212-100000@lazy.accessus.net>; from jay@lazy.accessus.net on Thu, Dec 14, 2000 at 03:10:05PM -0600
On Thu, Dec 14, 2000 at 03:10:05PM -0600, Jay Weber wrote:
> > No. The kernel should not unmount because this may cause
> > confusion and possibly corruption of user mode information
> > (eg. /etc/mtab).
> >
> > If a snapshot is dead the kernel could simply return an error
> > (EIO?) for any access to the snapshot (which no longer exists).
> > So the bahaviour would be well defined.
>
> Ah, yes, this does seem more reasonable and does address the issue of the
> bits that are left lying about.
THis patch should do that. It doesn't address the problem of remounting the
inactive snapshot though.
Patrick
--- drivers/md/lvm.c~ Thu Dec 14 14:31:21 2000
+++ drivers/md/lvm.c Fri Dec 15 09:46:15 2000
@@ -1678,6 +1678,8 @@
down(&lv->lv_snapshot_sem);
if (lv->lv_block_exception != NULL)
lvm_snapshot_remap_block(&rdev_tmp, &rsector_tmp, pe_start, lv);
+ else
+ ret = 1;
up(&lv->lv_snapshot_sem);
}
}
prev parent reply other threads:[~2000-12-15 10:00 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2000-12-14 4:46 [linux-lvm] LVM and inactive snapshots Jay Weber
2000-12-14 4:51 ` Jay Weber
2000-12-14 13:14 ` Michael Marxmeier
2000-12-14 21:10 ` Jay Weber
2000-12-15 10:00 ` Patrick Caulfield [this message]
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=20001215100028.B526@tykepenguin.com \
--to=patrick@tykepenguin.com \
--cc=linux-lvm@sistina.com \
/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