Re: You can't export non-ffs filesystems with NFS, and it isn't documented

2007-09-30 Thread Adi
On Sun, Sep 30, 2007 at 11:28:59AM +0159, Han Boetes wrote:
 ~% grep usb /etc/fstab
 /dev/sd0i  /mnt/usb msdos   rw,nodev,nosuid,noauto,noexec0   0
 ~% grep usb /etc/exports 
 /mnt/usb -maproot=han:nfs marsupilami
 ~% mount |grep usb
 /dev/sd0i on /mnt/usb type msdos (NFS exported, local, uid=1000, gid=0)
 ~% sudo pkill -HUP mountd
 ~% ls /mnt/usb 
 foofile
 
 On the linux client:
 
 ~% mount G /mnt/usb
 haddock:/mnt/usb on /mnt/usb type nfs (rw,addr=172.16.11.1)
 ~% ls /mnt/usb 

You have to force the linux client to use NFS version 2:
$ mount -o nfsvers=2 server:/foo/bar /mnt/baz

There are 2 different bugs in the NFSv3 server implementation in OpenBSD
which prevent
a) exported msdosfs, ntfs  probably other non-unix filesystems
b) exported ext2fs filesystems
from working properly.

For a) there's a fix in NetBSD(sys/nfs/nfs_serv.c:2831).
For b) there's a fix in the kernel/5365 PR.



Re: libc: missing POSIX functions

2007-09-21 Thread Adi
On Fri, Sep 21, 2007 at 04:39:49PM +0200, Christoph Egger wrote:
 Which form is better (a) or b))?
 
 a)
 
 char slave[80];
 ...
 
 if (openpty(masterfd, slavefd, slave, NULL, NULL)  0)

char slave[PATH_MAX] ?

I think it's a reasonable assumption that no library function
will return (on any system out there) a path longer than PATH_MAX.

 if (openpty(masterfd, slavefd, NULL, NULL, NULL)  0)
  ...
 
 slave = ptsname(masterfd);

'ttyname(slavefd)' will do.



trouble with extended partitions in latest snapshot

2006-09-15 Thread Adi

latest snapshot doesn't see the last two partitions on my disk.
neither 3.9, linux or freebsd have any problem with that.

Does anyone know what's going on ?

Thanks a lot.

(see below the output from disklabel -d, as seen on the snapshot
from September 1st and on 3.9)


disklabel.40:
# /dev/rwd0c:
type: ESDI
disk: ESDI/IDE disk
label: IBM-DTLA-307015
flags:
bytes/sector: 512
sectors/track: 63
tracks/cylinder: 16
sectors/cylinder: 1008
cylinders: 16383
total sectors: 30003120
rpm: 3600
interleave: 1
trackskew: 0
cylinderskew: 0
headswitch: 0   # microseconds
track-to-track seek: 0  # microseconds
drivedata: 0

16 partitions:
# sizeoffset  fstype [fsize bsize  cpg]
 c:  30003120 0  unused  0 0  # Cyl 0 - 29764
 i:   433937763   MSDOS   # Cyl 0*-  4304
 j:   4732560   4339440 unknown   # Cyl  4305 -  8999
 k:   1118880   9072000 unknown   # Cyl  9000 - 10109
 l:   9896039  10201338  ext2fs   # Cyl 10120*- 19937*
 m:   1895544  20097378 unknown   # Cyl 19937*- 21818*


disklabel.39:
# /dev/rwd0c:
type: ESDI
disk: ESDI/IDE disk
label: IBM-DTLA-307015
flags:
bytes/sector: 512
sectors/track: 63
tracks/cylinder: 16
sectors/cylinder: 1008
cylinders: 16383
total sectors: 30003120
rpm: 3600
interleave: 1
trackskew: 0
cylinderskew: 0
headswitch: 0   # microseconds
track-to-track seek: 0  # microseconds
drivedata: 0

16 partitions:
# sizeoffset  fstype [fsize bsize  cpg]
 c:  30003120 0  unused  0 0  # Cyl 0 - 29764
 i:   433937763   MSDOS   # Cyl 0*-  4304
 j:   4732560   4339440 unknown   # Cyl  4305 -  8999
 k:   1118880   9072000 unknown   # Cyl  9000 - 10109
 l:   9896039  10201338  ext2fs   # Cyl 10120*- 19937*
 m:   1895544  20097378 unknown   # Cyl 19937*- 21818*
 n:   5879790  21992985  ext2fs   # Cyl 21818*- 27651*
 o:   2120516  27872838  ext2fs   # Cyl 27651*- 29755*



Re: trouble with extended partitions in latest snapshot

2006-09-15 Thread Adi

that was supposed to go to the list, sorry.

Adi

On 9/15/06, Adi [EMAIL PROTECTED] wrote:

 Can you try to revert sys/arch/i386/i386/disksubr.c to rev 1.53 and see
 if the problem goes away?

yes, that fixes it.

Adi