Re: Some questions about GNOME:Storage



"Dirk-Jan C. Binnema" wrote:

> Hi there,
>
> I writing documentation for GNOME::Storage. I have some questions, and
> some random ideas.
>
> * Why are there no 'NoPermission'-exceptions defined for create_stream,
> create_storage, rename, commit, list_contents and erase?
> * Why are the 'NoPermission', 'NotFound' and 'NameExists'-exceptions not
> defined for copy_to?

We need to add this exceptions.

>
> * commit exists, but where is revert?

I think commit is all we need (although itīs possible to implement a revert
with libefs). But the semantic of commit is not clear at the moment - what is
if commit fails?

>
> Furthermore, looking at the OLE2 IStream interface, I wonder if
> SetElementTimes, SetStateBits and Stat would be desirable (of course, with
> some better names).
>
> The SetClass call of IStream could be translated into something setting
> the MIME-type for the given storage.
>
> (I guess the SetClass call may be problematic when using the efs fsys
> driver, as it adds metadata not already available a the filesystem level.)

No, this is not really a problem - I can store metadata to another file.

> Finally, taking the filesystem-in-a-file metaphor a bit further, wouldn't
> it be nice to have a 'ln' equivalent? I

Maybe - but wait until we need it really.



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]