pkgsrc-Users archive

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

filesystems/fuse-ntfs-3g: perfused: Unimplemented pathconf for name = 17



Hello

I am trying to use a NTFS filesystem with fuse. It is only a test in
order to learn how to use it,  as a possible shared USB hard disk
drive device between NetBSD and Linux in the future. Tests are done
with vndconfig before doing it in real hardware. Filesystem seems to
work but gives a strange error (strange for me for me, see below)

I create a file filled with zeroes:

netbsd-raspa4# dd if=/dev/zero of=driveNTFS bs=512 count=128*28*80
286720+0 records in
286720+0 records out
146800640 bytes transferred in 2.793 secs (52560200 bytes/sec)


I use vndconfig to load the file with an invented geometry:

netbsd-raspa4# vndconfig vnd0 driveNTFS 512/128/28/80

fidisk shows it is empty as it should be:

netbsd-raspa4# fdisk /dev/vnd0
fdisk: primary partition table invalid, no magic in sector 0
fdisk: Cannot determine the number of heads
Disk: /dev/vnd0
NetBSD disklabel disk geometry:
cylinders: 80, heads: 28, sectors/track: 128 (3584 sectors/cylinder)
total sectors: 286720, bytes/sector: 512

BIOS disk geometry:
cylinders: 17, heads: 255, sectors/track: 63 (16065 sectors/cylinder)
total sectors: 286720

Partitions aligned to 16065 sector boundaries, offset 63

Partition table:
0: <UNUSED>
1: <UNUSED>
2: <UNUSED>
3: <UNUSED>
No active partition.
Drive serial number: 0 (0x00000000)
netbsd-raspa4#


I created an NTFS partition:


netbsd-raspa4# fdisk -au /dev/vnd0
fdisk: primary partition table invalid, no magic in sector 0
fdisk: Cannot determine the number of heads
Disk: /dev/vnd0
NetBSD disklabel disk geometry:
cylinders: 80, heads: 28, sectors/track: 128 (3584 sectors/cylinder)
total sectors: 286720, bytes/sector: 512

BIOS disk geometry:
cylinders: 17, heads: 255, sectors/track: 63 (16065 sectors/cylinder)
total sectors: 286720

Partitions aligned to 16065 sector boundaries, offset 63

Do you want to change our idea of what BIOS thinks? [n]

Partition table:
0: <UNUSED>
1: <UNUSED>
2: <UNUSED>
3: <UNUSED>
No active partition.
Drive serial number: 0 (0x00000000)
Which partition do you want to change?: [none] 0
The data for partition 0 is:
<UNUSED>
sysid: [0..255 default: 169] 007
start: [0..18cyl default: 63, 0cyl, 0MB]
size: [0..18cyl default: 286657, 18cyl, 140MB]

Partition table:
0: NTFS, OS/2 HPFS, QNX2 or Advanced UNIX (sysid 7)
    start 63, size 286657 (140 MB, Cyls 0-17/216/7)
        PBR is not bootable: All bytes are identical (0x00)
1: <UNUSED>
2: <UNUSED>
3: <UNUSED>
No active partition.
Drive serial number: 0 (0x00000000)
Which partition do you want to change?: [none]
Do you want to change the active partition? [n]

We haven't written the MBR back to disk yet.  This is your last chance.
Partition table:
0: NTFS, OS/2 HPFS, QNX2 or Advanced UNIX (sysid 7)
    start 63, size 286657 (140 MB, Cyls 0-17/216/7)
        PBR is not bootable: All bytes are identical (0x00)
1: <UNUSED>
2: <UNUSED>
3: <UNUSED>
No active partition.
Drive serial number: 0 (0x00000000)
Should we write new partition table? [n] y


netbsd-raspa4# fdisk /dev/vnd0
Disk: /dev/vnd0
NetBSD disklabel disk geometry:
cylinders: 80, heads: 28, sectors/track: 128 (3584 sectors/cylinder)
total sectors: 286720, bytes/sector: 512

BIOS disk geometry:
cylinders: 18, heads: 255, sectors/track: 63 (16065 sectors/cylinder)
total sectors: 286720

Partitions aligned to 2048 sector boundaries, offset 63

Partition table:
0: NTFS, OS/2 HPFS, QNX2 or Advanced UNIX (sysid 7)
    start 63, size 286657 (140 MB, Cyls 0-17/216/7)
        PBR is not bootable: All bytes are identical (0x00)
1: <UNUSED>
2: <UNUSED>
3: <UNUSED>
No active partition.
Drive serial number: 0 (0x00000000)

it appears right.


netbsd-raspa4# disklabel /dev/vnd0
# /dev/vnd0:
type: vnd
disk: vnd
label: fictitious
flags:
bytes/sector: 512
sectors/track: 128
tracks/cylinder: 28
sectors/cylinder: 3584
cylinders: 80
total sectors: 286720
rpm: 3600
interleave: 1
trackskew: 0
cylinderskew: 0
headswitch: 0           # microseconds
track-to-track seek: 0  # microseconds
drivedata: 0

3 partitions:
#        size    offset     fstype [fsize bsize cpg/sgs]
 a:    286720         0     4.2BSD      0     0     0  # (Cyl.      0 -     79)
 c:    286720         0     unused      0     0        # (Cyl.      0 -     79)
disklabel: boot block size 0
disklabel: super block size 0



I noticed this warning when installing fuse-ntfs-3g

===========================================================================
$NetBSD: MESSAGE.NetBSD,v 1.1 2021/05/09 14:22:33 nia Exp $

Make sure the PERFUSE_BUFSIZE is lowered for NTFS:

# PERFUSE_BUFSIZE=135168 ntfs-3g /dev/dk1 /mnt

===========================================================================

I mount the device that way:

netbsd-raspa4# PERFUSE_BUFSIZE=135168 mount.ntfs-3g /dev/vnd0c /root/disco_ntfs/
netbsd-raspa4# cd /root/disco_ntfs/
netbsd-raspa4# ls
netbsd-raspa4# echo "this is a test 1" > testfile1
netbsd-raspa4# echo "this is a test 2" > testfile2
netbsd-raspa4# cat testfile1
this is a test 1
netbsd-raspa4# cat testfile2
this is a test 2
netbsd-raspa4# ls
testfile1 testfile2
netbsd-raspa4# ls -lh
total 1,0K
perfused: Unimplemented pathconf for name = 17: Resource temporarily unavailable
ls: ./testfile1: Function not implemented
-rwxrwxrwx  1 root  wheel   17B Sep 17 16:10 testfile1
-rwxrwxrwx  1 root  wheel   17B Sep 17 16:10 testfile2
netbsd-raspa4# cd ..
netbsd-raspa4# umount /root/disco_ntfs/
netbsd-raspa4# ls /root/disco_ntfs/
netbsd-raspa4# PERFUSE_BUFSIZE=135168 mount.ntfs-3g /dev/vnd0c /root/disco_ntfs/
netbsd-raspa4# pwd
/root
netbsd-raspa4# cd disco_ntfs/
netbsd-raspa4# ls
testfile1 testfile2
netbsd-raspa4# cat testfile1
this is a test 1
netbsd-raspa4# cat testfile2
this is a test 2
netbsd-raspa4# ls -l
total 2
perfused: Unimplemented pathconf for name = 17: Resource temporarily unavailable
ls: ./testfile1: Function not implemented
-rwxrwxrwx  1 root  wheel  17 Sep 17 16:10 testfile1
-rwxrwxrwx  1 root  wheel  17 Sep 17 16:10 testfile2
netbsd-raspa4#

ls command shows this error, I do not know what it means and if it is
important.

Thanks in advance.
Ramiro.


Home | Main Index | Thread Index | Old Index