cluster/gfs2-kernel/src/gfs2 ops_inode.c

bmarzins@sourceware.org bmarzins@sourceware.org
Tue Sep 27 19:06:00 GMT 2005


CVSROOT:	/cvs/cluster
Module name:	cluster
Changes by:	bmarzins@sourceware.org	2005-09-27 19:06:54

Modified files:
	gfs2-kernel/src/gfs2: ops_inode.c 

Log message:
	gfs2 was unable to truncate files if they were opened with write permissions,
	but the process later changed uids to an uid that didn't have write permission.
	POSIX says that if you had the permissions when you opened the file, you don't
	loose them when you change uids.
	
	gfs2 no longer checks permissions before truncating a file in gfs2_setattr.  I
	don't know what this check was ever added (It didn't exist in gfs 6.0). Since I
	don't know why the check was added, I can't say for certain that it is
	unessential.  However, I can't see any reason to do it, so I deleted it.

Patches:
http://sources.redhat.com/cgi-bin/cvsweb.cgi/cluster/gfs2-kernel/src/gfs2/ops_inode.c.diff?cvsroot=cluster&r1=1.31&r2=1.32



More information about the Cluster-cvs mailing list