patch-2.2.0-final linux/fs/coda/coda_linux.c

Next file: linux/fs/coda/dir.c
Previous file: linux/fs/coda/cnode.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.2.0-pre9/linux/fs/coda/coda_linux.c linux/fs/coda/coda_linux.c
@@ -30,8 +30,19 @@
 int coda_print_entry = 0; 
 int coda_access_cache = 1;
 
-/* caller must allocate 36 byte string ! */
+/* print a fid */
 char * coda_f2s(ViceFid *f)
+{
+	static char s[60];
+	if ( f ) {
+		sprintf(s, "(%-#lx,%-#lx,%-#lx)", 
+			 f->Volume, f->Vnode, f->Unique);
+	}
+	return s;
+}
+
+/* print another fid */
+char * coda_f2s2(ViceFid *f)
 {
 	static char s[60];
 	if ( f ) {

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov