[mw-devel] [Git][arthur/mw][master] Fix up create_folder_file

Justin Mitchell arthur at sucs.org
Thu Jan 21 10:04:50 GMT 2016


On Wed, 2016-01-20 at 21:07 +0000, Andrew Price wrote:
> Andrew Price pushed to branch master at Justin Mitchell / mw
> Commits:
>       * ff58d063 
>         by Andrew Price at 2016-01-20T21:02:50Z
>         Fix up create_folder_file
>         
>         Use ftruncate instead of writing malloced garbage entries to set the
>         file size of folders.bb, which dictates the (seemingly arbitrary) 64
>         folder limit. Also make it return on error instead of exiting.

64 folders  ==>

struct user -> int32_t folders[2]
64 bit flags of folder subscription.

struct user -> int32_t lastread[64];
64 counts of the highest numbered article read in each folder


so folder limit is fixed until users.bb gets moved to a more flexible
storage method.






More information about the mw-devel mailing list