Hello community,
here is the log from the commit of package nfs-server
checked in at Thu Aug 17 18:22:50 CEST 2006.
--------
--- nfs-server/nfs-server.changes 2006-02-20 16:34:12.000000000 +0100
+++ nfs-server/nfs-server.changes 2006-08-17 14:03:44.000000000 +0200
@@ -1,0 +2,8 @@
+Thu Aug 17 13:56:23 CEST 2006 - postadal@suse.cz
+
+- fixed truncating files on NFS in special case when e.g. vim is used
+ [#198676] (setattr.patch)
+- modified reiserfs.patch to allow 2 levels deeper directories
+ [#170560] (reiserfs.patch)
+
+-------------------------------------------------------------------
New:
----
nfs-server-2.2beta51-setattr.patch
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ nfs-server.spec ++++++
--- /var/tmp/diff_new_pack.7joYKb/_old 2006-08-17 18:21:20.000000000 +0200
+++ /var/tmp/diff_new_pack.7joYKb/_new 2006-08-17 18:21:20.000000000 +0200
@@ -21,7 +21,7 @@
Conflicts: nfs-utils
Autoreqprov: on
Version: 2.2beta51
-Release: 217
+Release: 227
Summary: Userspace NFS Server Daemons
URL: ftp://linux.mathematik.tu-darmstadt.de/pub/linux/people/okir
Source: %{name}-2.2beta47.tar.bz2
@@ -42,18 +42,22 @@
Patch11: %{name}-%{version}-nostrip.patch
Patch12: %{name}-%{version}-mntpathlen.patch
Patch13: %{name}-%{version}-uninitialized.patch
+Patch14: %{name}-%{version}-setattr.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description
The NFS server daemons are needed to export directories on your machine
to other hosts via the NFS protocol.
-There are 2 NFS servers: the userspace NFS server and the kernel NFS
+There are two NFS servers: the userspace NFS server and the kernel NFS
server. This package contains the userspace NFS server. The utilities
for the kernel NFS server can be found in the "nfs-utils" package.
For quota over NFS support, install the quota package.
+The userspace NFS server is a lot slower than the kernel NFS server,
+but has some special features that are not in the kernel NFS server.
+
Authors:
@@ -61,7 +65,7 @@
Olaf Kirch
%prep
-%setup -n %{name}-2.2beta47
+%setup -q -n %{name}-2.2beta47
%patch0 -p1
%patch1
%patch2
@@ -76,6 +80,7 @@
%patch11
%patch12
%patch13
+%patch14
# Remove pregenerated xdr functions. They use long
# instead of u32, which produces incorrect code on
# 64 bit architectures
@@ -132,6 +137,11 @@
/var/adm/fillup-templates/sysconfig.nfs-nfs-server
%changelog -n nfs-server
+* Thu Aug 17 2006 - postadal@suse.cz
+- fixed truncating files on NFS in special case when e.g. vim is used
+ [#198676] (setattr.patch)
+- modified reiserfs.patch to allow 2 levels deeper directories
+ [#170560] (reiserfs.patch)
* Mon Feb 20 2006 - postadal@suse.cz
- fixed uninitialized variable (uninitialized.patch) and
format string in patch reiserfs.patch [#151541]
++++++ nfs-server-2.2beta51-reiserfs.patch ++++++
--- /var/tmp/diff_new_pack.7joYKb/_old 2006-08-17 18:21:20.000000000 +0200
+++ /var/tmp/diff_new_pack.7joYKb/_new 2006-08-17 18:21:20.000000000 +0200
@@ -802,7 +802,7 @@
* hash_path[hash_path[0]+1] ... hash_path[HP_LEN-1] == 0
*/
-#define HP_LEN (NFS_FHSIZE - sizeof(psi_t))
-+#define HP_LEN (32 - 8)
++#define HP_LEN (NFS_FHSIZE-sizeof(u_int32_t)-sizeof(u_int16_t))
typedef struct {
- psi_t psi;
+ u_int32_t ino;
++++++ nfs-server-2.2beta51-setattr.patch ++++++
--- setattr.c.orig 2006-07-28 16:38:26.000000000 +0200
+++ setattr.c 2006-07-28 16:42:28.000000000 +0200
@@ -97,7 +97,20 @@
tvp[1].tv_sec = s->st_mtime;
tvp[1].tv_usec = 0;
}
- if (efs_utimes(path, tvp) < 0)
+ if (m_secs != IGNORE_TIME && attr->mtime.useconds == 1000000) {
+ /*
+ * from kernel/fs/nfsd/nfsxdr.c:
+ * Passing the invalid value useconds=1000000 for mtime
+ * is a Sun convention for "set both mtime and atime to
+ * current server time". It's needed to make permissions
+ * checks for the "touch" program across v2 mounts to
+ * Solaris and Irix boxes work correctly. See description of
+ * sattr in section 6.1 of "NFS Illustrated" by
+ * Brent Callaghan, Addison-Wesley, ISBN 0-201-32750-5
+ */
+ if (utime(path, (struct utimbuf *)0) < 0)
+ goto failure;
+ } else if (efs_utimes(path, tvp) < 0)
goto failure;
}
}
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Remember to have fun...
---------------------------------------------------------------------
To unsubscribe, e-mail: opensuse-commit+unsubscribe@opensuse.org
For additional commands, e-mail: opensuse-commit+help@opensuse.org