20130821-alt1

- switch back to nfsmount (mount.nfs fails on NFSv3)
This commit is contained in:
George V. Kouryachy (Fr. Br. George) 2013-08-21 17:30:56 +04:00
parent b05b5734e2
commit d0b4901c14
2 changed files with 8 additions and 5 deletions

View File

@ -137,14 +137,14 @@ static int nfsmount(char *dev, char *location)
if ((sep = strchr(dev, ':'))) {
*sep = '\0';
} else {
log_message("mount.nfs: directory to mount not in host:dir format");
log_message("nfsmount: directory to mount not in host:dir format");
return -1;
}
saddr.sin_family = AF_INET;
if (!inet_aton(dev, &saddr.sin_addr) &&
mygethostbyname(dev, &saddr.sin_addr)) {
log_message("mount.nfs: can't get address for %s", dev);
log_message("nfsmount: can't get address for %s", dev);
*sep = ':';
return -1;
}
@ -153,10 +153,10 @@ static int nfsmount(char *dev, char *location)
strcpy(spec, inet_ntoa(saddr.sin_addr));
n = strlen(spec);
strncpy(spec + n, sep, sizeof(spec) - n);
log_message("mount.nfs %s %s", spec, location);
log_message("nfsmount %s %s", spec, location);
if (!(pid = fork())) {
char * argv[] = {"/sbin/mount.nfs", "-onolock", spec, location, NULL};
char * argv[] = {"/bin/nfsmount", spec, location, NULL};
close(0);
close(1);
close(2);

View File

@ -2,7 +2,7 @@
%def_with splash
Name: propagator
Version: 20130716
Version: 20130821
Release: alt1
Summary: 'Early userspace' set of binaries
@ -37,6 +37,9 @@ make \
%_sbindir/propagator
%changelog
* Wed Aug 21 2013 Fr. Br. George <george@altlinux.ru> 20130821-alt1
- switch back to nfsmount (mount.nfs fails on NFSv3)
* Tue Jul 16 2013 Anton V. Boyarshinov <boyarsh@altlinux.ru> 20130716-alt1
- ext4 support added