[OpenWrt-Devel] [PATCH, V2] fstools: mount ntfs with ntfs-3g utility if it exist

Jerome BENOIT jbenoit100 at gmail.com
Tue Oct 2 08:10:27 EDT 2018


...
> @@ -1437,8 +1443,9 @@ static int mount_extroot(char *cfg)
>   		if (strncmp(pr->type, "ext", 3) &&
>   		    strncmp(pr->type, "f2fs", 4) &&
>   		    strncmp(pr->type, "btrfs", 5) &&
> +		    strncmp(pr->type, "ntfs", 5) &&
>   		    strncmp(pr->type, "ubifs", 5)) {
> -			ULOG_ERR("extroot: unsupported filesystem %s, try ext4, f2fs, btrfs or ubifs\n", pr->type);
> +			ULOG_ERR("extroot: unsupported filesystem %s, try ext4, f2fs, btrfs, ntfs or ubifs\n", pr->type);
>   			return -1;
>   		}
>
>
> Uhhh… by my count, “ntfs” is 4 letters, not 5.
>

It's easily fixable. And as long as the ntfs-3g package provide the 
right mount.X binary will just permit to fsck ntfs.

-- 
Jérôme Benoit aka fraggle
Piment Noir - https://piment-noir.org
OpenPGP Key ID : 27B535D3
Key fingerprint : B799 BBF6 8EC8 911B B8D7 CDBC C3B1 92C6 27B5 35D3


_______________________________________________
openwrt-devel mailing list
openwrt-devel at lists.openwrt.org
https://lists.openwrt.org/mailman/listinfo/openwrt-devel


More information about the openwrt-devel mailing list