Re: Is it possible to mock an external drive (for unit testing)?

2018-03-13 Thread Brüns , Stefan
On Dienstag, 13. März 2018 15:38:54 CET Michael Heidelbach wrote: > Thanks for your reply, Roman > I also thought of archivemount but (maybe to early) discarded that idea > because for testing I need control over the device id. > I'm not sure how to make identification more reliable either. If I'm

Re: Is it possible to mock an external drive (for unit testing)?

2018-03-13 Thread Michael Heidelbach
Thanks for your reply, Roman I also thought of archivemount but (maybe to early) discarded that idea because for testing I need control over the device id. I'm not sure how to make identification more reliable either. If I'm able to read the uuid of a drive or partition it would be small enough

Re: Is it possible to mock an external drive (for unit testing)?

2018-03-13 Thread Roman Chistokhodov
I'm not sure how you're gonna to make identification more reliable, but you can use fuse to create mountpoints in user space. E.g. using archievemount you can mount some archive and the files in the mountpoint will have another device id. Fuse must be available on the target OS of course. On Mon,

Re: Is it possible to mock an external drive (for unit testing)?

2018-03-12 Thread Michael Heidelbach
Albert , I've been unspecific deliberately. Apparently too much, sorry. This is what I want to do: To identify a document baloo is using a combination of device id and inode. This is insufficient because at least on my system the device id is not constant. For external drives it changes with

Re: Is it possible to mock an external drive (for unit testing)?

2018-03-11 Thread Albert Astals Cid
El dissabte, 10 de març de 2018, a les 18:27:51 CET, Michael Heidelbach va escriure: > Hi! > > Is it? How? > > Do examples exist? You'll really need to be more specific, my initial answer would be, why would you care if something is a external drive? Cheers, Albert > > > Thanks in