Re: mount_msdosfs and longnames

From: Rainer Hurling <rhurlin_at_gwdg.de>
Date: Sat, 19 Nov 2005 10:09:19 +0100
... sorry for the late answer but I have to sleep some hours.

I checked out version 1.36 of 
/usr/src/sbin/mount_msdosfs/mount_msdosfs.c and build/install new system.

I am not a developer. What have I to do instead of building/installing 
the whole system when I only want to change a single file?

Now the good news: With mounting version 1.36 all FAT32 Filenames are OK 
again :-)

The output of 'truss' is in the attachment.



Craig Rodrigues wrote:
> On Fri, Nov 18, 2005 at 11:22:36PM +0100, Rainer Hurling wrote:
> 
>>Do you have any other idea? Are there related changes in the files 
>>'msdosfs_fileno.c' and 'msdosfs_denode.c', both from 10/31/2005?
> 
> 
> Can you go back to version 1.36 of mount_msdosfs.c and 
> rebuild mount_msdosfs?  Try running mount_msdosfs under truss
> by doing something like:
> 
> truss -o/tmp/msdos_output.txt mount_msdosfs /dev/whatever /mnt
> 
> If it works, send the output of msdos_output.txt

mmap(0x0,3600,(0x3)PROT_READ|PROT_WRITE,(0x1000)MAP_ANON,-1,0x0) = 671535104 (0x2806d000)
munmap(0x2806d000,0xe10)			 = 0 (0x0)
__sysctl(0xbfbfe458,0x2,0x28069998,0xbfbfe454,0x0,0x0) = 0 (0x0)
mmap(0x0,32768,(0x3)PROT_READ|PROT_WRITE,(0x1002)MAP_ANON|MAP_PRIVATE,-1,0x0) = 671535104 (0x2806d000)
issetugid()					 = 0 (0x0)
open("/etc/libmap.conf",0x0,0666)		 ERR#2 'No such file or directory'
open("/var/run/ld-elf.so.hints",0x0,00)		 = 4 (0x4)
read(0x4,0xbfbfe420,0x80)			 = 128 (0x80)
lseek(4,0x80,SEEK_SET)				 = 128 (0x80)
read(0x4,0x2806f100,0xdb)			 = 219 (0xdb)
close(4)					 = 0 (0x0)
access("/lib/libkiconv.so.2",0)			 = 0 (0x0)
open("/lib/libkiconv.so.2",0x0,00)		 = 4 (0x4)
fstat(4,0xbfbfe460)				 = 0 (0x0)
read(0x4,0x280688e0,0x1000)			 = 4096 (0x1000)
mmap(0x0,12288,(0x5)PROT_READ|PROT_EXEC,(0x20002)MAP_NOCORE|MAP_PRIVATE,4,0x0) = 671567872 (0x28075000)
mprotect(0x28076000,4096,(0x7)PROT_READ|PROT_WRITE|PROT_EXEC) = 0 (0x0)
mprotect(0x28076000,4096,(0x5)PROT_READ|PROT_EXEC) = 0 (0x0)
mmap(0x28077000,4096,(0x3)PROT_READ|PROT_WRITE,(0x12)MAP_FIXED|MAP_PRIVATE,4,0x1000) = 671576064 (0x28077000)
close(4)					 = 0 (0x0)
access("/lib/libc.so.6",0)			 = 0 (0x0)
open("/lib/libc.so.6",0x0,027757762330)		 = 4 (0x4)
fstat(4,0xbfbfe460)				 = 0 (0x0)
read(0x4,0x280688e0,0x1000)			 = 4096 (0x1000)
mmap(0x0,872448,(0x5)PROT_READ|PROT_EXEC,(0x20002)MAP_NOCORE|MAP_PRIVATE,4,0x0) = 671580160 (0x28078000)
mprotect(0x28134000,4096,(0x7)PROT_READ|PROT_WRITE|PROT_EXEC) = 0 (0x0)
mprotect(0x28134000,4096,(0x5)PROT_READ|PROT_EXEC) = 0 (0x0)
mmap(0x28135000,20480,(0x3)PROT_READ|PROT_WRITE,(0x12)MAP_FIXED|MAP_PRIVATE,4,0xbd000) = 672354304 (0x28135000)
mmap(0x2813a000,77824,(0x3)PROT_READ|PROT_WRITE,(0x1012)MAP_ANON|MAP_FIXED|MAP_PRIVATE,-1,0x0) = 672374784 (0x2813a000)
close(4)					 = 0 (0x0)
sysarch(0xa,0xbfbfe4d0)				 = 0 (0x0)
mmap(0x0,408,(0x3)PROT_READ|PROT_WRITE,(0x1000)MAP_ANON,-1,0x0) = 672452608 (0x2814d000)
munmap(0x2814d000,0x198)			 = 0 (0x0)
mmap(0x0,440,(0x3)PROT_READ|PROT_WRITE,(0x1000)MAP_ANON,-1,0x0) = 672452608 (0x2814d000)
munmap(0x2814d000,0x1b8)			 = 0 (0x0)
mprotect(0x28078000,774144,(0x7)PROT_READ|PROT_WRITE|PROT_EXEC) = 0 (0x0)
mmap(0x0,22312,(0x3)PROT_READ|PROT_WRITE,(0x1000)MAP_ANON,-1,0x0) = 672452608 (0x2814d000)
munmap(0x2814d000,0x5728)			 = 0 (0x0)
mprotect(0x28078000,774144,(0x5)PROT_READ|PROT_EXEC) = 0 (0x0)
sigprocmask(0x1,0x28068820,0xbfbfe4a0)		 = 0 (0x0)
sigprocmask(0x3,0x28068830,0x0)			 = 0 (0x0)
lstat("/mnt",0xbfbfdf10)			 = 0 (0x0)
stat("/mnt",0xbfbfdfa0)				 = 0 (0x0)
stat("/mnt",0xbfbfe450)				 = 0 (0x0)
mount("msdosfs","/mnt",0,0xbfbfe4b0)		 = 0 (0x0)
exit(0x0)					
process exit, rval = 0
Received on Sat Nov 19 2005 - 08:09:26 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:38:48 UTC