[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: [PATCH 2/7] Use sysfs instead of losetup to find loop devs' backing files.



On Fri, 2011-01-07 at 17:23 -0800, Brian C. Lane wrote:
> On Fri, Jan 07, 2011 at 12:41:43PM -0600, David Lehman wrote:
> > +def get_backing_file(name):
> > +    path = ""
> > +    sys_path  = "/sys/class/block/%s/loop/backing_file" % name
> 
> Neat! But that may not always work. On the xfce livecd loop0 has this in
> it's backing_file:
> /osmin.img (deleted)

Right. /osming.img doesn't exist, either, because it's probably from
before the switchroot (or whatever it's called now). The way I see it,
it doesn't matter -- we won't ever try to manipulate those devices
anyhow. I think most, if not all, of the live-related loop devices'
backing files are not actually present in the real/final live
environment.

Dave



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]