From: Rosy Song <rosys...@rosinson.com> Subject: [OpenWrt-Devel] [PATCH] fstools: mount ntfs with ntfs-3g utility if it exists
This patch can mount ntfs with fuseblk fs type and make the deivces to be mounted writable. --- a/block.c +++ b/block.c @@ -881,7 +881,13 @@ static int handle_mount(const char *sour size_t mount_opts_len; char *mount_opts = NULL, *ptr; - err = mount(source, target, fstype, m ? m->flags : 0, + if (!strncmp(fstype, "ntfs", strlen(fstype)) && + !access("/sbin/mount.ntfs-3g", X_OK)) { + // mount ntfs filesystem with ntfs-3g utility + err = -1; + errno = ENODEV; + } else + err = mount(source, target, fstype, m ? m->flags : 0, (m && m->options) ? m->options : ""); /* Requested file system type is not available in kernel, _______________________________________________ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/mailman/listinfo/openwrt-devel