[Xperia Z1 Compact Android Development] gabrielgagz:
Hi [MENTION=6927050]maz-1[/MENTION] i implement your vold in my rom, and works perfect with exfat but not with ntfs. Ntfs-3g is compiled and running, the system recognize the flash rive but it's unabe to mount it.

I try to put an issue on github, but there is no option to do it. Here is the logcat related to the issue, and thanks alot for this:

03-28 20:01:41.870 270 280 V vold : /system/bin/sgdisk
03-28 20:01:41.870 5349 5725 D VoldConnector: RCV <- {640 disk:8_0 8}
03-28 20:01:41.870 270 280 V vold : --android-dump
03-28 20:01:41.870 270 280 V vold : /dev/block/vold/disk:8_0
03-28 20:01:41.870 5349 5725 D VoldConnector: RCV <- {641 disk:8_0 32176472064}
03-28 20:01:41.871 5349 5725 D VoldConnector: RCV <- {642 disk:8_0 SMI
03-28 20:01:41.871 5349 5725 D VoldConnector: }
03-28 20:01:41.871 5349 5725 D VoldConnector: RCV <- {644 disk:8_0 /sys//devices/f9200000.ssusb/f9200000.dwc3/xhci-hcd.0.auto/usb1/1-1/1-1:1.0/host0/target0:0:0/0:0:0:0/block/sda}
03-28 20:01:41.946 558 558 D WLAN_PSA: NL BCAST MSG KDriver Not ready yet :
03-28 20:01:41.998 270 280 V vold : DISK mbr
03-28 20:01:41.998 270 280 V vold : PART 1 7
03-28 20:01:42.001 5349 5725 D VoldConnector: RCV <- {650 public:8_1 0 "disk:8_0" ""}
03-28 20:01:42.002 5349 5725 D VoldConnector: RCV <- {654 public:8_1 usb}
03-28 20:01:42.002 5349 5725 D VoldConnector: RCV <- {651 public:8_1 0}
03-28 20:01:42.003 5349 5724 D VoldConnector: SND -> {7 volume mount public:8_1 0 0}
03-28 20:01:42.003 5349 5725 D VoldConnector: RCV <- {643 disk:8_0}
03-28 20:01:42.006 5964 5964 D StorageNotification: Notifying about public volume: VolumeInfo{public:8_1}:
03-28 20:01:42.006 5964 5964 D StorageNotification: type=PUBLIC diskId=disk:8_0 partGuid=null mountFlags=0 mountUserId=0
03-28 20:01:42.006 5964 5964 D StorageNotification: state=UNMOUNTED
03-28 20:01:42.006 5964 5964 D StorageNotification: fsType=null fsUuid=null fsLabel=usb
03-28 20:01:42.006 5964 5964 D StorageNotification: path=null internalPath=null
03-28 20:01:42.007 270 287 V vold : /system/bin/blkid
03-28 20:01:42.007 270 287 V vold : -c
03-28 20:01:42.007 5349 5725 D VoldConnector: RCV <- {651 public:8_1 1}
03-28 20:01:42.007 270 287 V vold : /dev/null
03-28 20:01:42.007 270 287 V vold : -s
03-28 20:01:42.007 270 287 V vold : TYPE
03-28 20:01:42.007 270 287 V vold : -s
03-28 20:01:42.007 270 287 V vold : UUID
03-28 20:01:42.007 270 287 V vold : -s
03-28 20:01:42.007 270 287 V vold : LABEL
03-28 20:01:42.007 270 287 V vold : /dev/block/vold/public:8_1
03-28 20:01:42.009 5964 5964 D StorageNotification: Notifying about public volume: VolumeInfo{public:8_1}:
03-28 20:01:42.009 5964 5964 D StorageNotification: type=PUBLIC diskId=disk:8_0 partGuid=null mountFlags=0 mountUserId=0
03-28 20:01:42.009 5964 5964 D StorageNotification: state=CHECKING
03-28 20:01:42.009 5964 5964 D StorageNotification: fsType=null fsUuid=null fsLabel=usb
03-28 20:01:42.009 5964 5964 D StorageNotification: path=null internalPath=null
03-28 20:01:42.021 5349 5349 D ZenLog : intercepted: -1|com.android.systemui|1397773634|public:8_1|10023,alarmsOnly
03-28 20:01:42.022 5349 5349 V NotificationService: pkg=com.android.systemui canInterrupt=false intercept=true
03-28 20:01:42.088 270 287 V vold : /dev/block/vold/public:8_1: UUID="2981CCBE65070D79" LABEL="usb" TYPE="ntfs"
03-28 20:01:42.093 270 287 V vold : /system/bin/fsck.ntfs
03-28 20:01:42.093 270 287 V vold : -n
03-28 20:01:42.093 270 287 V vold : /dev/block/vold/public:8_1
03-28 20:01:42.097 5349 5725 D VoldConnector: RCV <- {652 public:8_1 ntfs}
03-28 20:01:42.097 5349 5725 D VoldConnector: RCV <- {653 public:8_1 2981CCBE65070D79}
03-28 20:01:42.098 5349 5725 D VoldConnector: RCV <- {654 public:8_1 usb}
03-28 20:01:42.098 5349 5725 D VoldConnector: RCV <- {656 public:8_1 /mnt/media_rw/2981CCBE65070D79}
03-28 20:01:42.098 5349 5725 D VoldConnector: RCV <- {655 public:8_1 /mnt/media_rw/2981CCBE65070D79}
03-28 20:01:42.199 270 287 I fsck.ntfs: Mounting volume... OK
03-28 20:01:42.199 270 287 I fsck.ntfs: Processing of $MFT and $MFTMirr completed successfully.
03-28 20:01:42.203 270 287 I fsck.ntfs: Checking the alternate boot sector... OK
03-28 20:01:42.203 270 287 I fsck.ntfs: NTFS volume version is 3.1.
03-28 20:01:42.203 270 287 I fsck.ntfs: NTFS partition /dev/block/vold/public:8_1 was processed successfully.
03-28 20:01:42.217 270 287 E : ntfs kernel space support detected!
03-28 20:01:42.217 270 287 V vold : /system/bin/mount
03-28 20:01:42.217 270 287 V vold : -t
03-28 20:01:42.217 270 287 V vold : ntfs
03-28 20:01:42.217 270 287 V vold : -o
03-28 20:01:42.217 270 287 V vold : utf8,uid=1023,gid=1023,fmask=7,dmask=7,nodev,nosuid,noexec
03-28 20:01:42.217 270 287 V vold : /dev/block/vold/public:8_1
03-28 20:01:42.217 270 287 V vold : /mnt/media_rw/2981CCBE65070D79
03-28 20:01:42.240 270 287 I mount : mount: '/dev/block/vold/public:8_1'->'/mnt/media_rw/2981CCBE65070D79': Invalid argument
03-28 20:01:42.245 270 287 I mount : mount terminated by exit(1)
03-28 20:01:42.245 270 287 E vold : public:8_1 failed to mount /dev/block/vold/public:8_1: No such file or directory
03-28 20:01:42.246 5349 5725 D VoldConnector: RCV <- {651 public:8_1 6}
03-28 20:01:42.247 5349 5725 D VoldConnector: RCV <- {400 7 Command failed}

EDIT: Finally i solved disabling NTFS support in kernel....thanks