Package: flashcache-utils
Version: 1.0+git20130518-1
Severity: normal

--- Please enter the report below this line. ---

If I run flashcache_load on an already mounted cache device, instead of
returning with an error code (as it used to do some time ago) it hangs, with
the message:
device-mapper: create ioctl on capitanatacache failed: Device or resource
busy

It never returns until I kill it. This behaviour has a nasty (for me) side
effect.
I have set up (some time ago) my laptop with a hybrid drive to use the ssd
to cache the spinning disk, and used the resulting cached device as a
physical device to base an lvm on. As a result my root partition resides on
it. It took a little work to configure intramfs-tools (a hook into
/etc/initramfs-tools/hooks to put flashcache utils and modules in the
/ramdisk, a script in /etc/initramfs-tools/scripts/init-premount/ to run
flashcache_scan on initially available devices before mounting them) but it
works like a charm. Until recently. Recently, something changed in
flashcache_load, whereby instead of just returning if run on an already
loaded cache, it hangs indefinitely. So now, when the boot sequence arrives
at running udev, and udev runs /lib/udev/rules.d/84-flashcache.rules on all
available devices, it stops forever, until udev times out on it and kills
it.

While I understand that booting off a flashcache device is not supported by
the debian package (but if you want I can send you the hook and script I put
in /etc/initramfs!), I still think it is a bad thing for flashcache_load to
hang indefinitely if run on an already mounted device.

Could you please either:
1) correct flashcache_load to return with an error code if run on an already
running cache
2) or add a standalone test which can check if a cache device is already
loaded


Thanks in advance, best regards
Giacomo Mulas

--- System information. ---
Architecture: amd64
Kernel:       Linux 3.9-1-amd64

Debian Release: jessie/sid
  500 all             liveusb.info
  401 unstable        www.deb-multimedia.org
  401 unstable        mi.mirror.garr.it
  401 unstable        ftp.debian.org
  399 stable          dl.google.com
   10 experimental    ftp.debian.org

--- Package information. ---
Depends                           (Version) | Installed
===========================================-+-======================
libc6 (>= 2.7) | perl | flashcache-dkms (= 1.0+git20130518-1) | lsb-base (>= 3.2-14) | module-init-tools | dmsetup |


Recommends         (Version) | Installed
============================-+-==============
udev                         | 175-7.2
bsdutils       (>= 1:2.17.2) | 1:2.20.1-5.4


Package's Suggests field is empty.


--
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]

Reply via email to