Bug 66665

Summary: use kio_slave ioslaves for data files
Product: [Applications] k3b Reporter: chkno <chkno>
Component: generalAssignee: k3b developers <k3b>
Status: CONFIRMED ---    
Severity: wishlist CC: divided.mind, franke.daniel, fridolin, gassauer, giecrilj, jessicadawidowski, john.tapsell, lofi, mic, vide80
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: Compiled Sources   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description chkno 2003-10-27 01:55:48 UTC
Version:            (using KDE KDE 3.1.4)
Installed from:    Compiled From Sources

The ability to add files to a project via ioslaves.

Burn directly from sftp://, nfs://, ftp://, smb://, fish://, etc.
Comment 1 Daniel Franke 2004-07-30 15:01:50 UTC
I would really appreciate such a possibility ...
Comment 2 Colinet Sylvain 2004-10-11 12:30:55 UTC
I need this functionnality, I don't have space left on my box and I need to burn data that only accessible via ssh or ftp.
Comment 3 Stephan Binner 2004-11-30 16:59:37 UTC
*** Bug 86245 has been marked as a duplicate of this bug. ***
Comment 4 Stephan Binner 2004-11-30 16:59:57 UTC
*** Bug 93250 has been marked as a duplicate of this bug. ***
Comment 5 Stephan Binner 2004-11-30 17:03:13 UTC
*** Bug 67581 has been marked as a duplicate of this bug. ***
Comment 6 Stephan Binner 2004-11-30 17:04:03 UTC
*** Bug 79851 has been marked as a duplicate of this bug. ***
Comment 7 Sebastian Trueg 2005-06-10 12:11:29 UTC
*** Bug 107120 has been marked as a duplicate of this bug. ***
Comment 8 Daniel Franke 2006-03-23 13:45:23 UTC
This wish is about two and a half years old, and still as valid as it was then. 
Any chance to see this implemented at some time?
Comment 9 Sebastian Trueg 2006-03-23 14:59:02 UTC
proably not.... sorry. :(
Comment 10 Daniel Franke 2006-03-23 15:26:10 UTC
What's the problem? 
Comment 11 Sebastian Trueg 2006-03-23 15:48:03 UTC
it's not trivial at all to include kioslave support and I have other 
priorities.
Comment 12 chkno 2006-03-23 17:31:14 UTC
What would be the best way to implement this?

Would artsdsp's trick work?  That is, catch and redirect mkisofs's open(), read(), and stat() calls:  the fake open() could pass out fake descriptors for kio-based files and the fake read() and stat() could do the kio interfacing.
Comment 13 Sebastian Trueg 2006-03-23 18:04:40 UTC
that sounds like a good idea...
Comment 14 Christoph Burger-Scheidlin 2006-11-12 23:23:28 UTC
Hmmm, I suppose buffer underruns become a problem, since some connections can simply not provide data with the minimum speed that a burner/medium requires. In that case the data would need to be prefetched before burning.
Comment 15 Andras Georgy Bekes 2006-11-13 10:12:41 UTC
> Hmmm, I suppose buffer underruns become a problem, 
> since some connections can simply not provide data with the minimum
> speed that a burner/medium requires.


The same can happen with "normal" filesystem access, if the system is 
busy, or if the stuff is on a slow (or faulty) device (scratched CD) or 
a networked filesystem (NFS, SaMBa, anything tricky with FUSE, etc.).

This is the user's responsibility. The user knows where the files are, 
knows the risks and consequences.
Comment 16 Christoph Burger-Scheidlin 2006-11-13 22:58:49 UTC
I disagree. When e.g. kpdf opens a file that is on a remote storage facillity like ftp://example.org, the only drawback is that it might take long to load. However, if k3b cannot get to the data fast enough, then the medium might be broken (disregarding burnfree and such stuff).

A possibility is to disable on the fly burning for remote services but that is inconvenient for people who have smb:// on a local network and it would work fine, so disabling it all together is not an option. A warning of some sort is definitely needed though.
Comment 17 Sebastian Trueg 2006-11-16 12:50:52 UTC
*** Bug 132499 has been marked as a duplicate of this bug. ***
Comment 18 Andras Georgy Bekes 2006-11-16 13:02:52 UTC
> I disagree. When e.g. kpdf opens a file that is on a 
> remote storage facillity like ftp://example.org, the only drawback is
> that it might take long to load. However, if k3b cannot get to the
> data fast enough, then the medium might be broken (disregarding
> burnfree and such stuff).

That is true. But the same can happen if you are burning files from 
the "real" filesystem. I mentioned a few examples. 

> A possibility is to disable on the fly burning for remote services
> but that is inconvenient for people who have smb:// on a local
> network and it would work fine, so disabling it all together is not
> an option. A warning of some sort is definitely needed though. 


If such a disabling of on-the-fly burning or warning is to be 
implemented, it is logical only if the files on the "real" filesystem 
are also checked whether they are reliable enough. Maybe k3b could have 
a list of reliable and unreliable filesystem types and ioslave types.

If such a safety net is to be implemented, please let the user modify 
the list of unreliable ioslaves and filesystem types, or switch the 
checking completely off.
Comment 19 Christoph Burger-Scheidlin 2006-11-16 13:17:07 UTC
Sorry, misread comment 15 and did not realize that you were talking about mounted filessystems.

I agree with your wish for a configurable safety net.
Comment 20 Renan Inácio 2007-03-21 02:17:52 UTC
I think this is related to this bug:
In k3b 1.0, the context menus in konqueror does not appear when the url is like system:/users/myUser, which would be myUsers's home directory. Is it only possible to fix it when this bug is fixed, or is a independent new bug?
Comment 21 Michał Małek 2010-06-05 19:45:03 UTC
*** Bug 184966 has been marked as a duplicate of this bug. ***
Comment 22 Michał Małek 2010-06-05 19:48:04 UTC
*** Bug 240683 has been marked as a duplicate of this bug. ***
Comment 23 Christopher Yeleighton 2012-04-21 08:33:39 UTC
When you open an ISO image residing via SMB in Dolphin, the I/O first laboriously copies the file into temporary storage and then K3b fails to open the result.
When you open the same within K3b, K3b says "File does not exist".
K3b should use a local cache to handle remote files.  This is what Nero does (also for files on removable media).