On Thu, 2005-09-15 at 17:53 -0400, Jeremy Katz wrote: > On Thu, 2005-09-15 at 11:50 -0400, Brian Long wrote: > > The patch in the following Bugzilla adds nfsmountopts flag to Anaconda. > > This is parsed by loader and used in the doPwMount function when the NFS > > client mounts /mnt/source. > > > > This is needed to override the kickstart kernel defaults in RHEL 4 of > > rsize=32768,wsize=32768,udp. If tcp was being used, the large > > rsize,wsize would not be a problem. With udp, however, large > > rsize,wsize is causing longer installation times due to retransmissions. > > I'd rather try to approach this from a less brute force approach. As it > stands now, the number of arguments to doPwMount is getting fairly > unmanageable. > > If we're going to make changes to doPwMount, we should probably make it > closer to just a wrapper of mount(2). The various integer flags should > probably become a bitmask. The account and password arguments are only > there for (obsolete) SMB support, so should just be dropped. Instead of > adding an NFS specific option, maybe doing just a pointer to fs specific > options makes more sense. I'll probably do this later tonight now that > I've written out a description of it ;) > > For the other side of things, I'd rather see the nfs options in the > 'nfs' kickstart directive and with special handling in ks=nfs:... rather > than making another bit of global data. Although this doesn't help the > interactive case right now, we'll probably going to have to do something > for when we add NFSv4 support anyway, so this is a logical step to move > things in the right direction. Jeremy, I'm looking at CVS HEAD for anaconda/isys/imount.c and I see your options bitmask with IMOUNT_RDONLY, IMOUNT_BIND, and IMOUNT_REMOUNT. I assume the *data is where the filesystem-specific mount options are supposed to be specified, but I don't see *data being parsed before calling nfsmount() with &extra_opts and &mount_opt. The only thing I see is this: if (data) strdup(data); Before I dig too much further, how do you expect *data to be transformed into extra_opts for nfsmount() or should extra_opts = strdup(data)? /Brian/ -- Brian Long | | | IT Data Center Systems | .|||. .|||. Cisco Linux Developer | ..:|||||||:...:|||||||:.. Phone: (919) 392-7363 | C i s c o S y s t e m s