News for hackers. Stuff that matters.
Re:Dokany – User mode file system library for windows with F... by voltagex_ on Wednesday September 21, 2016 @11:44PM (#12554164)
This is a fantastic project. FWIW, Paragon's extfs for Windows uses either Dokany or the original Dokan, so at least one company thought this was good enough to use in production.

I'll just point out for anyone interested in trying this, expect BSODs: https://github.com/dokan-dev/dokany/issues/344.

I'm also not sure how the Win10 Anniversary driver signing changes have affected the project - they're relying on a commercial sponsor for the signed releases.

Alternative: https://github.com/billziss-gh/winfsp

Paid alternative: https://www.eldos.com/cbfs/

There have also been a number of other discussions here, but I should get back to work instead of digging those up.

Re:Dokany – User mode file system library for windows with F... by didulive on Thursday September 22, 2016 @03:26AM (#12555111)
All issue BSOD reported during the 9 months of testing of this version has been fixed (4 release candidate was made). Latest release candidate was already used on products. But it is still recommended using virtual machine when developing your file system in case of.
Re:Dokany – User mode file system library for windows with F... by voltagex_ on Thursday September 22, 2016 @03:38AM (#12555161)
I don't doubt you've made lots of fixes, but what about the issue I linked above? That's probably a case of an AV filter driver doing something silly, but still.
Re:Dokany – User mode file system library for windows with F... by didulive on Thursday September 22, 2016 @03:45AM (#12555201)
Yes, AV are rude with drivers. :( We fixed symantec and another AV during the process. We will look into it !
Re:Dokany – User mode file system library for windows with F... by billziss on Thursday September 22, 2016 @04:06AM (#12555300)
I am the author of WinFsp. Thanks for mentioning it.

WinFsp properly supports the filter manager, which means that AV filters should work without problems.

Re:Dokany – User mode file system library for windows with F... by didulive on Thursday September 22, 2016 @05:00AM (#12555510)
Like dokan before it was tested :wink:
Re:Dokany – User mode file system library for windows with F... by billziss on Thursday September 22, 2016 @12:51PM (#12558188)
I am not sure what that means.

Dokan calls IoRegisterFileSystem on disk file systems, but does not appear to do so on network file systems. FsRtlRegisterUncProvider is the pre-Vista MUP and does not do it for you.

WinFsp has multiple integrated test suites, some of which Dokany uses (with tests missing/disabled). It also has hundreds of users at this point.

Re:Dokany – User mode file system library for windows with F... by Maxhy on Friday September 23, 2016 @01:46AM (#12562583)
"WinFsp has multiple integrated test suites, some of which Dokany uses (with tests missing/disabled)." > really? I'm generally quiet and let Liryna talking but your thread hijacking to promote your product each time there is an official Dokan publication start to be annoying. This test suite was one of your contribution on Dokany before you stopped being involved on the project so of course we are... (it will soon be replaced by another test suite btw). Anyway, let's stop the argument here...
Re:Dokany – User mode file system library for windows with F... by billziss on Friday September 23, 2016 @01:05PM (#12566151)
Maxhy, I understand that you are annoyed. Please recall that:

1. The only Dokany thread that I have explicitly mentioned WinFsp is this one (and only after someone else mentioned it). I avoided doing so on your Reddit thread, for example. You may consider that my original message to the Dokany mailing list was promotion, but from my perspective at least it was simply a message to like minded people.

2. That until Lyrina's message(s) in cygwin-apps, where she effectively sabotaged my ITP submission, I was willing to work with Dokany and I said so in a message to the Dokany list.

The truth is that until that ITP submission point I was not bothering anyone and was just working on my project. The only two times that I made comments on Dokany vs WinFsp was when I was explicitly asked: one time by you on the Dokany list and one time on Reddit in WinFsp's own promotion thread.

So I agree with you: let's stop the arguments here. I am willing to stop hijacking threads or trying to sabotage your project's progress. However I also want Dokany to stop insinuating that WinFsp is not being tested (where my argument about the test suites stems from) or sabotage WinFsp's progress.

Bill

Re:Dokany – User mode file system library for windows with F... by swiley on Thursday September 22, 2016 @12:36AM (#12554389)
>expect BSODS

I wrote a (unreleased I believe) filesystem with this a couple years ago and my machine would reliably BSOD every time Windows tried to do the mandatory automatic updates. My friends say you can disable that but I haven't used Windows often enough since then for it to be a problem.

Re:Dokany – User mode file system library for windows with F... by didulive on Thursday September 22, 2016 @03:27AM (#12555115)
Dokany is a fork of legacy dokan abandonned by the creator. It has a lots of changes and fix since you tested !
Re:Dokany – User mode file system library for windows with F... by sp332 on Thursday September 22, 2016 @10:21AM (#12556947)
Why would a user-space file system driver cause BSOD?
Re:Dokany – User mode file system library for windows with F... by cjbprime on Thursday September 22, 2016 @10:56AM (#12557217)
As I understand it, the BSODs happened when virus scanners hit a Dokany FS. Interaction between two different hooks into the kernel's FS layer, I guess.
Re:Dokany – User mode file system library for windows with F... by voltagex_ on Thursday September 22, 2016 @06:41PM (#12560945)
There's a kernel-mode component here too - Dokan.sys I think. It's the equivalent to fuse.ko. I imagine a bug in FUSE could cause a kernel panic as well.
Re:Dokany – User mode file system library for windows with F... by modeless on Thursday September 22, 2016 @01:55AM (#12554719)
I've been using an sshfs implementation for Windows which is based on this: https://github.com/Foreveryone-cz/win-sshfs

It works moderately well. It's incredibly convenient to have sshfs on Windows.

Re:Dokany – User mode file system library for windows with F... by billziss on Thursday September 22, 2016 @04:10AM (#12555316)
Consider my SSHFS-Win port which allows you to map a new network drive from Explorer using syntax like: \\sshfs\username@server

https://github.com/billziss-gh/sshfs-win

Download binaries from here:

http://www.secfs.net/winfsp/download/

Re:Dokany – User mode file system library for windows with F... by didulive on Thursday September 22, 2016 @04:54AM (#12555495)
This is exactly what does win-sshfs linked by modeless. Is it just not advertising to your own product ?
Re:Dokany – User mode file system library for windows with F... by billziss on Thursday September 22, 2016 @01:56PM (#12558715)
The difference is that SSHFS-Win is a port of SSHFS to Cygwin and not written in C#.

[Nothing against C# BTW. I used it for years while employed at MSFT.]

Re:Dokany – User mode file system library for windows with F... by Zekio on Thursday September 22, 2016 @04:14AM (#12555331)
does it support privatekeys?
Re:Dokany – User mode file system library for windows with F... by billziss on Thursday September 22, 2016 @04:30AM (#12555380)
Not as of yet. But you can use the Windows Credential Manager to store your passwords.
Re:Dokany – User mode file system library for windows with F... by ivan_gammel on Thursday September 22, 2016 @03:58AM (#12555264)
The design of this library reminds me of OOP anti-pattern "Public Morozov" (in the name of popular Soviet myth about 13-year old boy Pavlik Morozov, who denounced his father to authorities), which exposes internal state of an object and private methods via public delegates.
Re:Dokany – User mode file system library for windows with F... by gwbas1c on Thursday September 22, 2016 @09:24AM (#12556632)
When I tried Dokany, I was pretty happy with the API. (C# Adapter) There were some non-obvious tricks, but overall, compared to ELDOS, the API is well thought out.
Re:Dokany – User mode file system library for windows with F... by ivan_gammel on Wednesday September 28, 2016 @03:56PM (#12600786)
I meant the trick with delegating tasks to user mode DLL for what was supposed to be done in kernel mode by OS designers.
Re:Dokany – User mode file system library for windows with F... by ComodoHacker on Thursday September 22, 2016 @04:46AM (#12555456)
Re:Dokany – User mode file system library for windows with F... by rexicus on Thursday September 22, 2016 @10:39AM (#12557071)
UMDF isn't for file systems.
Re:Dokany – User mode file system library for windows with F... by koolba on Thursday September 22, 2016 @07:33AM (#12556065)
Was this always FOSS? I remember looking at this a few years back and it wasn't though maybe I'm mixing this up with a different fuse-on-Windows product.
Re:Dokany – User mode file system library for windows with F... by didulive on Thursday September 22, 2016 @07:38AM (#12556081)
Yes, this was always FOSS.
Re:Dokany – User mode file system library for windows with F... by stuaxo on Thursday September 22, 2016 @05:35AM (#12555646)
It's fantastic that this is being worked on again, I last looked at Dokan a few years ago and was disappointed, it seemed unmaintained.

Much QDOS to the crew at Dokany :)

Re:Dokany – User mode file system library for windows with F... by rogerdpack on Thursday September 22, 2016 @02:29AM (#12554875)
Is this the same project that was like...dormant for years?
Re:Dokany – User mode file system library for windows with F... by didulive on Thursday September 22, 2016 @03:28AM (#12555120)
Yes exact ! It has been forked and is highly active since 2 years now ! It has a lots of fix and improvement since the dokan legacy.
Re:Dokany – User mode file system library for windows with F... by sspiff on Thursday September 22, 2016 @03:35AM (#12555144)
It's a fork of the original Dokan (which you are referencing), that has been under active development for at least a year now (I came across it a year or so back).
Re:Dokany – User mode file system library for windows with F... by eDameXxX on Thursday September 22, 2016 @01:51AM (#12554702)
Why and when I need create a new file system on Windows other than FAT or NTFS?

This problem seems interesting.

Re:Dokany – User mode file system library for windows with F... by mateuszf on Thursday September 22, 2016 @02:04AM (#12554763)
It's not about creating new filesystems, but using filesystem ui to browse any filesystem like hierarchy. For example using a potential implementation you as a user could be browsing S3, remote NFS, or gmail account where labels would be represented as folders and emails as text files.
Re:Dokany – User mode file system library for windows with F... by Arnavion on Thursday September 22, 2016 @03:52AM (#12555241)
Powershell providers get you quite the way there, though of course only PS understands them so they're not useful for other applications.
Re:Dokany – User mode file system library for windows with F... by NTripleOne on Thursday September 22, 2016 @05:40AM (#12555666)
> gmail account where labels would be represented as folders and emails as text files.

Okay, this sounds incredible - is this an actual doable thing here?

Re:Dokany – User mode file system library for windows with F... by mverwijs on Thursday September 22, 2016 @07:24AM (#12556017)
Re:Dokany – User mode file system library for windows with F... by wyldfire on Thursday September 22, 2016 @08:54AM (#12556452)
This was a big deal when gmail was first announced and they said they would give away one gigabyte (!!) worth of email storage with every (free!) account.

These days, dropbox, drive and many other similar services provide a much more straightforward mapping to a storage service.

Re:Dokany – User mode file system library for windows with F... by Annatar on Thursday September 22, 2016 @02:05AM (#12554770)
You don't. Where this comes in as useful is when you have a dual boot system, and you want to access your ext3 filesystems from Windows, for example. It would also be useful for running FUSE ZFS, since ZFS can protect data in ways which are science fiction for NTFS.
Re:Dokany – User mode file system library for windows with F... by Zardoz84 on Thursday September 22, 2016 @07:35AM (#12556075)
Or BTRFS or EXT4 or XFS or etc...

On any case NTFS feels a lot outdate against any other FS, plus It helps a lot to the people (like me) that works half time on Linux, half time on Windows. Instead of keep the shared data on NTFS, I could dream of using BTRFs and keep a time machine like system using snapshots....

Re:Dokany – User mode file system library for windows with F... by urza on Friday September 23, 2016 @03:04AM (#12562842)
Btrfs isn't there yet in terms of stability and who knows if it ever will be with current implementation. Ext4 doest have snapshots or data integrity as ZFS..

Sorry I don't want to nitpick but just in case someone is considering it.. Do your research about filesystem first. ZFS has no equal at this time.

Re:Dokany – User mode file system library for windows with F... by Annatar on Friday September 23, 2016 @03:40AM (#12562964)
BTRFS is in a perpetual beta because the developer(s) haven't been able to iron out all the bugs. Not even the filesystem format has stabilized yet.

(Open)ZFS, on the other hand, has ten years of enterprise production use under its belt. And versioned filesystem and feature flags, so the latest OpenZFS can read all its previous versions (and ignore unknown feature flags) without breaking backward compatibility. Like the other commenter stated, it has no equal right now. Closest thing to ZFS, conceptually, is the Oracle automatic storage management (ASM). While ASM is available on Windows, ZFS is not, but FUSE might actually let you run it. Might.

Re:Dokany – User mode file system library for windows with F... by therealmarv on Thursday September 22, 2016 @02:56AM (#12554990)
EncFS, sshfs, ext3, on the fly Amazon Drive, Google Drive reading etc. etc.
Re:Dokany – User mode file system library for windows with F... by gwbas1c on Thursday September 22, 2016 @09:28AM (#12556648)
You don't. Dokany allows a user-mode application to expose its own virtual drive.

Examples of possible use cases:

- Mount a zip file as a drive letter

- Mount an ftp site as a drive letter

- Mount an Android device as a drive letter

In all the above cases, there's ways to view zip files, ftp sites, and Android devices in Explorer; but you can not open these files in any application you want unless they are copied to a local disk.

Re:Dokany – User mode file system library for windows with F... by dangravell on Thursday September 22, 2016 @06:36AM (#12555848)
My fave project using FUSE: https://khenriks.github.io/mp3fs/
Re:Dokany – User mode file system library for windows with F... by billziss on Thursday September 22, 2016 @07:45PM (#12561289)
Just for kicks I just ported mp3fs to Cygwin using WinFsp and Cygfuse. It is getting to dinner time and I have to be with the family, but I will post more on this in a day or two.
Re:Dokany – User mode file system library for windows with F... by billziss on Friday September 23, 2016 @06:46PM (#12568485)
Ok, after this Pull Request is merged into Cygfuse, anyone will be able to compile MP3FS on Cygwin.

https://github.com/mgeisert/cygfuse/pull/2

Re:Dokany – User mode file system library for windows with F... by Yuioup on Thursday September 22, 2016 @01:34AM (#12554615)
Oh good. Now npm install can stop telling me that fusefs is incompatible on Windows.
Re:Dokany – User mode file system library for windows with F... by api on Wednesday September 21, 2016 @11:44PM (#12554163)
I bet that hurt real bad.
Re:Dokany – User mode file system library for windows with F... by hackerabdo1 on Wednesday September 21, 2016 @11:56PM (#12554213)
with no survivors :^)