exfat not handled correctly

Report & discuss bugs found in SABnzbd
Forum rules
Help us help you:
  • Are you using the latest stable version of SABnzbd? Downloads page.
  • Tell us what system you run SABnzbd on.
  • Adhere to the forum rules.
  • Do you experience problems during downloading?
    Check your connection in Status and Interface settings window.
    Use Test Server in Config > Servers.
    We will probably ask you to do a test using only basic settings.
  • Do you experience problems during repair or unpacking?
    Enable +Debug logging in the Status and Interface settings window and share the relevant parts of the log here using [ code ] sections.
Post Reply
Player73
Newbie
Newbie
Posts: 2
Joined: October 5th, 2019, 2:47 pm

exfat not handled correctly

Post by Player73 »

It seems to me that exfat disks are not correctly recogized. Sabnzbd gives me the error message "Completed Download Folder /data/Downloads is on FAT file system, limiting maximum file size to 4GB", but it is an exfat partition and could actually store files bigger than 4GB if sabnzbd only tried.

I'm on Arch linux with exfat-linux-dkms installed.

Code: Select all

$ df -T /data
Filesystem     Type   1K-blocks  Used  Available Use% Mounted on
/dev/sda3      exfat 1638908928 10245632 1628663296   1% /data


$ ll /data/file.txt
-rwxrwxrwx 1 root root 9,8G Oct  5 21:32  file.txt
User avatar
sander
Release Testers
Release Testers
Posts: 8811
Joined: January 22nd, 2008, 2:22 pm

Re: exfat not handled correctly

Post by sander »

Ah, nice catch.

A change to https://github.com/sabnzbd/sabnzbd/blob ... dir.py#L40 should solve it.

pseudo-code:

if contains "FAT" and not contains "EXFAT" then

So ... are you willing and able to change that yourself?

PS: for Windows users, maybe a change is needed here: https://github.com/sabnzbd/sabnzbd/blob ... dir.py#L55 ?
Player73
Newbie
Newbie
Posts: 2
Joined: October 5th, 2019, 2:47 pm

Re: exfat not handled correctly

Post by Player73 »

Thanks, I have my workaround (I disabled the FAT-check completely). I just thought I should let you know about the issue.
User avatar
sander
Release Testers
Release Testers
Posts: 8811
Joined: January 22nd, 2008, 2:22 pm

Re: exfat not handled correctly

Post by sander »

I bought a 64GB SD card, put it into my Ubuntu Linux, and Ubuntu did not recognize it.
After

Code: Select all

sudo apt-get install exfat-fuse exfat-utils
the "df -T" tells the Type is fuseblk, not exfat (and thus not FAT and thus not a problem ;) )

Code: Select all

sander@witte:~$ df -T  /media/sander/0123-4567/
Filesystem     Type    1K-blocks  Used Available Use% Mounted on
/dev/sdb1      fuseblk  60784640 16768  60767872   1% /media/sander/0123-4567

So Arch linux does it different? Which kernel do you use? I believe Microsoft was going to integrate exfat support into the linux kernel? https://www.omgubuntu.co.uk/2019/08/mic ... nux-kernel
Post Reply