Re: Issues with new NTFS module

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



Le ven. 17 nov. 2023 à 07:41, Giovanni Santini <giovannisantini93@xxxxxxxx> a écrit :
Hi Marius,
On 2023-11-15 14:16, Marius Kittler wrote:
Since both are completely different implementations the syncing behavior might 
differ. I haven't paid much attention to the syncing behavior of the new kernel 
module but it might simply be more lazy than the FUSE implementation. Does it 
help to invoke `sync` manually? If yes, this may also be a workaround in case 
you really want it to write the data without delay.

I did try, yes. No fortune with manual sync and udisks or mount.

Here is a shell session, I think a pastebin is not needed given that it is short:

---

(23:16) giovanni @ ~ $ udisksctl mount -b /dev/nvme0n1p5 -t ntfs3
Mounted /dev/nvme0n1p5 at /run/media/giovanni/Data
(23:16) giovanni @ ~ $ touch /run/media/giovanni/Data/ntfs_error.txt
(23:17) giovanni @ ~ $ ls -al /run/media/giovanni/Data/ntfs_error.txt
-rw-r--r-- 1 giovanni users 0 Nov 16 23:17 /run/media/giovanni/Data/ntfs_error.txt
(23:17) giovanni @ ~ $ echo "Using ntfs3" > /run/media/giovanni/Data/ntfs_error.txt
(23:17) giovanni @ ~ $ cat /run/media/giovanni/Data/ntfs_error.txt
(23:17) giovanni @ ~ $ udisksctl unmount -b /dev/nvme0n1p5
Unmounted /dev/nvme0n1p5.
(23:17) giovanni @ ~ $ udisksctl mount -b /dev/nvme0n1p5 -t ntfs3
Mounted /dev/nvme0n1p5 at /run/media/giovanni/Data
(23:17) giovanni @ ~ $ cat /run/media/giovanni/Data/ntfs_error.txt
Using ntfs3
(23:17) giovanni @ ~ $ udisksctl unmount -b /dev/nvme0n1p5
Unmounted /dev/nvme0n1p5.
(23:18) giovanni @ ~ $ sudo mount -t ntfs3 -o uid=$UID,gid=$GROUPS /dev/nvme0n1p5 /mnt/
(23:18) giovanni @ ~ $ cat /mnt/ntfs_error.txt  
Using ntfs3
(23:18) giovanni @ ~ $ echo "Using ntfs3 and mount" > /mnt/ntfs_error.txt  
(23:19) giovanni @ ~ $ cat /mnt/ntfs_error.txt  
(23:19) giovanni @ ~ $ sync
(23:19) giovanni @ ~ $ cat /mnt/ntfs_error.txt  
(23:19) giovanni @ ~ $ sync
(23:19) giovanni @ ~ $ cat /mnt/ntfs_error.txt  
(23:19) giovanni @ ~ $ sudo umount /mnt  
(23:19) giovanni @ ~ $ sudo mount -t ntfs3 -o uid=$UID,gid=$GROUPS /dev/nvme0n1p5 /mnt/
(23:19) giovanni @ ~ $ cat /mnt/ntfs_error.txt  
Using ntfs3 and mount
(23:19) giovanni @ ~ $

---

You can see that when I try to overwrite the file content it just "appears" empty.

Unmounting and remounting the partition makes the content appear.

Bests,

-- 
Giovanni Santini

on the `/proc/sys/vm/` side may be ?
does the `sync` followed by a `sysctl -q vm.drop_caches=3` change things ?

regards, lacsaP.

[Index of Archives]     [Linux Wireless]     [Linux Kernel]     [ATH6KL]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [Share Photos]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Samba]     [Device Mapper]

  Powered by Linux