Re: Supporting multiple filesystems and "block" devices

2017-01-13 Thread Christopher Collins
On Fri, Jan 13, 2017 at 08:29:33PM -0200, Fabio Utzig wrote: > Yes, I was expecting it! So I had 3 options in mind: > > Option 1 - Use a "drive" name as was implemented. Btw, it's not limited > to single letter drive names! Sure if someone really likes DOS, they > could use A:, B:, etc. This

Re: Supporting multiple filesystems and "block" devices

2017-01-13 Thread Fabio Utzig
> I'm sure you anticipated this comment :). Seeing a ':' in a path brings > back horrible memories for me. I am not sure if this is just an > aesthetic judgment, or if the "UNIX way" would actually be better. If > it's just an asthetic thing, then I'll get over it, but I can't help but > think

Re: Supporting multiple filesystems and "block" devices

2017-01-13 Thread David G. Simmons
+1 on UNIX paths. I have PTSD from DOS paths. :-) dg > On Jan 13, 2017, at 5:07 PM, Christopher Collins wrote: > > Hi Fabio, > > Sounds great. I only have one comment: > > On Fri, Jan 13, 2017 at 03:09:48PM -0200, Fabio Utzig wrote: >>> All the fs_* functions where

Re: Supporting multiple filesystems and "block" devices

2017-01-13 Thread Christopher Collins
Hi Fabio, Sounds great. I only have one comment: On Fri, Jan 13, 2017 at 03:09:48PM -0200, Fabio Utzig wrote: > > All the fs_* functions where updated to support multiple disks. To > > access a file/dir now will required adding the name of the disk as a > > prefix like this: > > > > rc =

Supporting multiple filesystems and "block" devices

2017-01-13 Thread Fabio Utzig
Hello, I've been working on patch that adds support for accessing multiple devices and filesystems on Mynewt (overcoming the current single FS and "hardcoded" block device per driver). The PR is available here: https://github.com/apache/incubator-mynewt-core/pull/158 This PR is completely