Displaying 20 results from an estimated 24 matches for "data_length".
2006 Jan 11
8
Oracle and Rails seems really slow.... In development
...mail", :string
t.column "note", :text
end
And everything works fine, but in development, it has to run this query
for each view
select column_name, data_type, data_default, nullable,
decode(data_type, ''NUMBER'', data_precision,
''VARCHAR2'', data_length,
null) as length,
decode(data_type, ''NUMBER'', data_scale, null) as scale
from user_catalog cat, user_synonyms syn, all_tab_columns col
where cat.table_name = ''USERS''
and syn.synonym_name (+)= cat.table_name
and col.table_name = nvl(syn.table_name, cat.table...
2006 Feb 07
5
OCI adapter slowdown on dictionary access
Hi,
after some experience with Rails on MySQL databases I gave it a try on one
of our larger Oracle database.
I was facing a problem when Rails tried to detect the columns for a
model/table. The appropriate statement ran about 1 min which led to a
timeout.
Our Oracle guru told me to analyze the SYSTEM schema. After that hadn''t
helped, he said the only remaining chance is to use a
2012 Sep 17
9
[PATCH] Upgrade vtpmd to berlios version 0.7.4
...access.h>
-+#include <sys/types.h>
-+#include <sys/stat.h>
-+#include <fcntl.h>
-+#include <unistd.h>
-
- #define TPM_STORAGE_FILE "/var/tpm/tpm_emulator-1.2."
STR(VERSION_MAJOR) "." STR(VERSION_MINOR)
-
- static int write_to_file(uint8_t *data, size_t data_length)
- {
- int res;
-- struct file *fp;
-- mm_segment_t old_fs = get_fs();
-- fp = filp_open(TPM_STORAGE_FILE, O_WRONLY | O_TRUNC | O_CREAT,
S_IRUSR | S_IWUSR);
-- if (IS_ERR(fp)) return -1;
-- set_fs(get_ds());
-- res = fp->f_op->write(fp, data, data_length, &fp->f_pos);
-- set_f...
2001 Jan 25
3
Samba quota 'feature' fix?
Hey Guys and Gals,
I'm wondering if the quotas.c file is supposed to fix the problem where a
Linux x86 system running with the quota software causes corrupt files to be
written by Windows clients. I compiled it in and it didn't seem to make a
difference for the following problem.
In other words, if I enable quotas on my RH6.2 / 2.2.16-22 kernel box and
then write a file via Samba/Windows
2012 Nov 20
52
[PATCH RFC] stubdom: Change vTPM shared page ABI
Since the vTPM implementations are being incorproated into Xen and
possibly upstream Linux, I would like to see if this protocol change
could be added before we have significant legacy implementations. If
not, I still think it would be useful as either a v2 or negotiated
protocol change.
The current vTPM protocol is a copy of the network protocol. This was
likely done for ease of implementation,
2006 Mar 23
11
ActiveRecord: Oracle metadata loading slow on large database
...be the SQL being generated to
lazy-load the columns metadata. "def columns(table_name, name = nil)"
method generates the following SQL:
select column_name, data_type, data_default, nullable,
decode(data_type, ''NUMBER'', data_precision,
''VARCHAR2'', data_length,
null) as length,
decode(data_type, ''NUMBER'', data_scale, null) as scale
from user_catalog cat, user_synonyms syn, all_tab_columns col
where cat.table_name = ''#{NAME_OF_TABLE}''
and syn.synonym_name (+)= cat.table_name
and col.table_name = nvl(syn.table_name...
1998 Dec 11
1
backup PC client
I began with Samba 1.9.18.p10. on SunOs 5.6. I try backup PC(Windows95)
with this:
smbclient \\\\pcbig\\test
..
..
smb:\> recurse
smb:\> directory recursion is now on
smb:\> tar c /dev/rmt/0
....
Until it is OK.
But restore has error:
smb:\> tar x /dev/rmt/0
smb:\> restore tar file \test1.txt of size 70 bytes
smb:\> Updating creation date on \testfolder1\
smb:\> ERRDOS - 50
2004 Aug 06
3
net/sock.c question
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Hi
I have started to add bandwidth <limit> option to icecast. My ideea is to
compute the current bandwidth by estimation on each sock_write*() call.
Something like this:
1. initially we set kbps = 0, kbps_time = now and kbps_bytes = 0
2. after some time, a sock_write*() function is called which in turn calls
sock_kbps_update(nobytes);
2016 Apr 15
0
FLAC__metadata_get_picture always return false
...E_TYPE_UNDEFINED; pic_type++)
{
if (FLAC__metadata_get_picture(filename, &smet, pic_type, NULL, NULL, (unsigned)(-1) , (unsigned)(-1), (unsigned)(-1), (unsigned)(-1)) )
{
FLAC__StreamMetadata_Picture pict = smet->data.picture;
if ( pict.data_length )
{
printf("found image %s : %s", pict.mime_type, pict.description);
} else printf(« no data %s : %s\n", pict.mime_type, pict.description);
break;
} else printf("get_picture %u returned false\n", pic_type );
}...
2001 Apr 21
0
WARNING: Short packet. Try increasing the snap length (120)
...)
SMB Command = 0x32
Error class = 0x1
Error code = 2
Flags1 = 0x80
Flags2 = 0x41
Tree ID = 2
Proc ID = 62350
UID = 100
MID = 61696
Word Count = 0
SMBError = ERRDOS - ERRbadfile (File not found.)
TRANSACT2_FINDFIRST param_length=4096 data_length=0
Trans2Interim
-------------- next part --------------
HTML attachment scrubbed and removed
2010 Nov 08
0
Windows server not responding to Samba requests
...(REQUEST)
SMB Command = 0x32
Error class = 0x0
Error code = 0 (0x0)
Flags1 = 0x8
Flags2 = 0x1
Tree ID = 4105 (0x1009)
Proc ID = 2248 (0x8c8)
UID = 4099 (0x1003)
MID = 9 (0x9)
Word Count = 15 (0xf)
TRANSACT2_FINDFIRST param_length=44 data_length=0
TotParam=44 (0x2c)
TotData=0 (0x0)
MaxParam=10 (0xa)
MaxData=16644 (0x4104)
MaxSetup=0 (0x0)
Flags=0x0
TimeOut=0 (0x0)
Res1=0x0
ParamCnt=44 (0x2c)
ParamOff=68 (0x44)
DataCnt=0 (0x0)
DataOff=112 (0x70)
SetupCnt=1 (0x1)
smb_bcc=47
Attribute=HIDDEN SYSTEM DIR
SearchCount=1366 (0x556)
Flags=0x6
Level...
2003 Aug 27
0
os/2 & AIX & Samba & VisualAge error
...rans2 (REQUEST)
SMB Command = 0x32
Error class = 0x0
Error code = 0 (0x0)
Flags1 = 0x8
Flags2 = 0x3
Tree ID = 4 (0x4)
Proc ID = 175 (0xaf)
UID = 100 (0x64)
MID = 65107 (0xfe53)
Word Count = 15 (0xf)
TRANSACT2_QFILEINFO param_length=4 data_length=31
TotParam=4 (0x4)
TotData=31 (0x1f)
MaxParam=2 (0x2)
MaxData=84 (0x54)
MaxSetup=0 (0x0)
Flags=0x0
TimeOut=0 (0x0)
Res1=0x0
ParamCnt=4 (0x4)
ParamOff=68 (0x44)
DataCnt=31 (0x1f)
DataOff=72 (0x48)
SetupCnt=1 (0x1)
TransactionName=
Parameters=
Data: (4 bytes)
[000] 3A C9 03 00...
2006 Jan 04
3
Legacy Table works-except edit?
Greetings,
I''m trying to put a Rails face on a Legacy Oracle 10 table. I am
currently setting the table_name and primary_key, and I get the list
and show to work fine.
However, when I hit edit I just get the Editing <table name>, Edit
button, Show, and Back. None of the fields are rendered.
Why would I be able to show these fields in the show and list, but not
edit them in the
2011 Jun 07
2
virtio scsi host draft specification, v3
...All of these fields are always read-only, as are the cdb and dataout
field. sense and subsequent fields are always write-only.
The sense_len field indicates the number of bytes actually written
to the sense buffer. The residual field indicates the residual
size, calculated as data_length - number_of_transferred_bytes, for
read or write operations.
The status byte is written by the device to be the SCSI status code.
The response byte is written by the device to be one of the following:
- VIRTIO_SCSI_S_OK when the request was completed and the status byte
is...
2011 Jun 07
2
virtio scsi host draft specification, v3
...All of these fields are always read-only, as are the cdb and dataout
field. sense and subsequent fields are always write-only.
The sense_len field indicates the number of bytes actually written
to the sense buffer. The residual field indicates the residual
size, calculated as data_length - number_of_transferred_bytes, for
read or write operations.
The status byte is written by the device to be the SCSI status code.
The response byte is written by the device to be one of the following:
- VIRTIO_SCSI_S_OK when the request was completed and the status byte
is...
2006 Jun 05
2
[PATCH] Pet peave then->than
...xt;
Index: source/lib/registry/reg_backend_nt4.c
===================================================================
--- source/lib/registry/reg_backend_nt4.c (revision 16046)
+++ source/lib/registry/reg_backend_nt4.c (working copy)
@@ -463,7 +463,7 @@
}
if ((*ret)->data.length < vk->data_length) {
- DEBUG(1, ("Read data less then indicated data length!\n"));
+ DEBUG(1, ("Read data less than indicated data length!\n"));
}
return WERR_OK;
Index: source/lib/registry/registry.h
===================================================================
--- source/lib/regi...
1999 Jan 20
3
oplcok_break more information (PR#12734)
...t
Flags=0x0
Length=87
SMB PACKET: SMBtrans2 (REQUEST)
SMB Command = 0x32
Error class = 0x0
Error code = 0
Flags1 = 0x0
Flags2 = 0x1
Tree ID = 1
Proc ID = 6277
UID = 100
MID = 35073
Word Count = 15
TRANSACT2_FINDFIRST param_length=21 data_length=0
TotParam=21
TotData=0
MaxParam=10
MaxData=2432
MaxSetup=0
Flags=0x0
TimeOut=0
Res1=0x0
ParamCnt=21
ParamOff=66
DataCnt=0
DataOff=0
SetupCnt=1
TransactionName=SMB2
Attribute=HIDDEN SYSTEM DIR
SearchCount=6
Flags=0x0
Level=260
File=TMP.~NF
18:09:41.388972 gate.irstc.cc.al.us.netbios-ssn >
ost5...
2011 Nov 30
2
[PATCH] Add virtio-scsi to the virtio spec
...uent fields are always write-only.
+ The
+\series bold
+sense_len
+\series default
+ field indicates the number of bytes actually written to the sense buffer.
+ The
+\series bold
+residual
+\series default
+ field indicates the residual size, calculated as
+\begin_inset Quotes eld
+\end_inset
+
+data_length - number_of_transferred_bytes
+\begin_inset Quotes erd
+\end_inset
+
+, for read or write operations.
+ For bidirectional commands, the number_of_transferred_bytes includes both
+ read and written bytes.
+ A residual field that is less than the size of datain means that the dataout
+ field was proc...
2011 Nov 30
2
[PATCH] Add virtio-scsi to the virtio spec
...uent fields are always write-only.
+ The
+\series bold
+sense_len
+\series default
+ field indicates the number of bytes actually written to the sense buffer.
+ The
+\series bold
+residual
+\series default
+ field indicates the residual size, calculated as
+\begin_inset Quotes eld
+\end_inset
+
+data_length - number_of_transferred_bytes
+\begin_inset Quotes erd
+\end_inset
+
+, for read or write operations.
+ For bidirectional commands, the number_of_transferred_bytes includes both
+ read and written bytes.
+ A residual field that is less than the size of datain means that the dataout
+ field was proc...
2012 Feb 05
1
[PATCH v3] Add virtio-scsi to the virtio spec
...uent fields are always write-only.
+ The
+\series bold
+sense_len
+\series default
+ field indicates the number of bytes actually written to the sense buffer.
+ The
+\series bold
+residual
+\series default
+ field indicates the residual size, calculated as
+\begin_inset Quotes eld
+\end_inset
+
+data_length - number_of_transferred_bytes
+\begin_inset Quotes erd
+\end_inset
+
+, for read or write operations.
+ For bidirectional commands, the number_of_transferred_bytes includes both
+ read and written bytes.
+ A residual field that is less than the size of datain means that the dataout
+ field was proc...