From: Karel Zak <kzak@redhat.com>
To: linux-hotplug@vger.kernel.org
Subject: Re: add loop device backing file in udev database
Date: Mon, 06 Aug 2012 13:57:56 +0000 [thread overview]
Message-ID: <20120806135756.GD24621@x2.net.home> (raw)
In-Reply-To: <5deaf9514b7dafac35d4cdef91260ba1@poivron.org>
On Thu, Jun 28, 2012 at 04:38:46PM +0200, quidame@poivron.org wrote:
> >That is usually the wrong thing to do, because it can get out-of-sync,
> >and udev would pretend something that is not true anymore.
Right, /sys is always better place than udev db.
> # losetup -d /dev/loop0
> # losetup /dev/loop0 /dev/sdc1 # sdc is USB stick
There is also LOOP_CHANGE_FD ioctl, I have doubts that kernel informs
userspace about this change. (but standard userspace utils does not
use this ioctl)
Karel
--
Karel Zak <kzak@redhat.com>
http://karelzak.blogspot.com
prev parent reply other threads:[~2012-08-06 13:57 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-06-28 10:39 add loop device backing file in udev database quidame
2012-06-28 11:11 ` Kay Sievers
2012-06-28 14:38 ` quidame
2012-08-06 13:57 ` Karel Zak [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=20120806135756.GD24621@x2.net.home \
--to=kzak@redhat.com \
--cc=linux-hotplug@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 read-only IMAP folder(s) and NNTP newsgroup(s).