Re: [ntfs-3g-devel] ntfs-3g test cases

2017-03-27 Thread Jean-Pierre André
none wrote:
> Le 2017-03-20 08:36, Jean-Pierre André a écrit :
>> Hi,
>>
>> none wrote:
>>> Hello,
>>>
>>> Does anyone has an idea on how to build a ntfs 3.1 filesystem less than
>>> 150Kb large ?
>>
>> The 3.5" diskettes I was using thirty years ago had a
>> capacity of 720kB... Earlier there were 5" diskettes
>> with a capacity around 350kB.
>>
>
> I remember about ntfs for floppies, but it can’t build a ntfs 3.1
> filesystem
>>
>> You will probably have to patch mkntfs, and be on you own.
>
> I patched mkntfs for accepting to create a fileystem below 1Mb, but I’m
> completely unable to tell to create a small LogFile. I also don’t

You might try extending the logic for computing the
logfile size in mkntfs_initialize_rl_logfile() from
mkntfs.c.

> understand the format used by $UpCase, so I can’t shrunk it at all.

This is just byte pairs giving the upper-case code
for each character : for example at index 'a' (or 0x61*2)
you get 'A' (pair 0x41, 0x00).

You might try setting UPCASE_LEN to a smaller value in
unistr.c.

Of course you may have to deal with unwanted consequences.

Jean-Pierre

>> ntfs-3g might be able to mount such a non-standard volume,
>> but Windows will probably not.
>>
>
> Yes Windows® refuse to mount ntfs volumes below 8Mb, but I’m interested
> in ntfs-3g. And wouldn’t it be better if libntfs-3g had several test
> cases upstream like most non fileystem parser have ?
>
> Cordialement,
>
>
>



--
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
___
ntfs-3g-devel mailing list
ntfs-3g-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ntfs-3g-devel


Re: [ntfs-3g-devel] ntfs-3g test cases

2017-03-20 Thread Jean-Pierre André
Hi,

none wrote:
> Hello,
>
> Does anyone has an idea on how to build a ntfs 3.1 filesystem less than
> 150Kb large ?

The 3.5" diskettes I was using thirty years ago had a
capacity of 720kB... Earlier there were 5" diskettes
with a capacity around 350kB.

> The problem is mkntfs create a large $Logfile and a recent version of
> $Upcase each using using more than 150Kb. Unlike other programs like
> ntfsprogs ntfs-3g doesn’t offer to edit ntfs metafiles
> https://superuser.com/q/1189709/282033
>
> In the meantime, ntfsresize does not shrink $Logfile, even if it’s
> empty.
>
> So does anyone have (or have an idea on how to build) a valid ntfs 3.1
> filesystem that can be mounted by ntfs-3g as small as possible ?

You will probably have to patch mkntfs, and be on you own.

ntfs-3g might be able to mount such a non-standard volume,
but Windows will probably not.

>
> regards,



--
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
___
ntfs-3g-devel mailing list
ntfs-3g-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ntfs-3g-devel