patch-1.3.42 linux/drivers/scsi/seagate.c
Next file: linux/drivers/scsi/seagate.h
Previous file: linux/drivers/scsi/scsi_syms.c
Back to the patch index
Back to the overall index
- Lines: 34
- Date:
Tue Nov 14 08:41:22 1995
- Orig file:
v1.3.41/linux/drivers/scsi/seagate.c
- Orig date:
Mon Oct 23 18:02:12 1995
diff -u --recursive --new-file v1.3.41/linux/drivers/scsi/seagate.c linux/drivers/scsi/seagate.c
@@ -406,6 +406,33 @@
return buffer;
}
+int seagate_st0x_proc_info(char *buffer, char **start, off_t offset,
+ int length, int hostno, int inout)
+{
+ const char *info = seagate_st0x_info(NULL);
+ int len;
+ int pos;
+ int begin;
+
+ if (inout) return(-ENOSYS);
+
+ begin = 0;
+ strcpy(buffer,info);
+ strcat(buffer,"\n");
+
+ pos = len = strlen(buffer);
+
+ if (pos<offset) {
+ len = 0;
+ begin = pos;
+ }
+
+ *start = buffer + (offset - begin);
+ len -= (offset - begin);
+ if ( len > length ) len = length;
+ return(len);
+}
+
/*
* These are our saved pointers for the outstanding command that is
* waiting for a reconnect
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov
with Sam's (original) version of this