Displaying 7 results from an estimated 7 matches for "create_new".
2023 Apr 06
3
[PATCH] ocfs2: Fix wrong search logic in __ocfs2_resv_find_window
...gt;m_reservations;
unsigned int gap_start, gap_end, gap_len;
- struct ocfs2_alloc_reservation *prev_resv, *next_resv;
+ struct ocfs2_alloc_reservation *prev_resv, *next_resv, *best_resv;
struct rb_node *prev, *next;
unsigned int cstart, clen;
unsigned int best_start = 0, best_len = 0;
+ int create_new = 0;
/*
* Nasty cases to consider:
@@ -540,8 +541,9 @@ static void __ocfs2_resv_find_window(struct ocfs2_reservation_map *resmap,
if (clen) {
best_len = clen;
best_start = cstart;
+ create_new = 1;
if (best_len == wanted)
- goto out_insert;
+ goto out_create;
}...
2023 Apr 29
1
[PATCH] ocfs2: Fix wrong search logic in __ocfs2_resv_find_window
..._len;
>> - struct ocfs2_alloc_reservation *prev_resv, *next_resv;
>> + struct ocfs2_alloc_reservation *prev_resv, *next_resv, *best_resv;
>> struct rb_node *prev, *next;
>> unsigned int cstart, clen;
>> unsigned int best_start = 0, best_len = 0;
>> + int create_new = 0;
>>
>> /*
>> * Nasty cases to consider:
>> @@ -540,8 +541,9 @@ static void __ocfs2_resv_find_window(struct ocfs2_reservation_map *resmap,
>> if (clen) {
>> best_len = clen;
>> best_start = cstart;
>> + create_new = 1;
>...
2023 Apr 21
2
[PATCH] ocfs2: Fix wrong search logic in __ocfs2_resv_find_window
...int gap_start, gap_end, gap_len;
> - struct ocfs2_alloc_reservation *prev_resv, *next_resv;
> + struct ocfs2_alloc_reservation *prev_resv, *next_resv, *best_resv;
> struct rb_node *prev, *next;
> unsigned int cstart, clen;
> unsigned int best_start = 0, best_len = 0;
> + int create_new = 0;
>
> /*
> * Nasty cases to consider:
> @@ -540,8 +541,9 @@ static void __ocfs2_resv_find_window(struct ocfs2_reservation_map *resmap,
> if (clen) {
> best_len = clen;
> best_start = cstart;
> + create_new = 1;
> if (best_len == wanted)
> -...
2006 May 19
7
AR transactions and isolation levels
...he same as my real one), and believe
db-managed transactions are the way to go about this.
It''s my first real ''go'' at transactions, so I may be mistaken about
how things really work.
Anyway.. Consider this example code:
Class Invoice < ActiveRecord::Base
def self.create_new
self.transaction do
self.connection.execute("set transaction isolation level
serializable, read write")
last = Invoice.find(:first, :order => "invoice_no desc")
invoice = Invoice.new
invoice.invoice_no = last.invoice_no + 1
sleep(10)
in...
2007 Aug 27
0
libmfcr2 is giving compilation errors
...mfcr2_signaling_state_t' has no member named
'super_tones'
mfcr2.c:3547: error: 'mfcr2_signaling_state_t' has no member named
'super_tone_t x_state'
mfcr2.c:3547: error: 'mfcr2_signaling_state_t' has no member named
'super_tones'
mfcr2.c: In function 'create_new':
mfcr2.c:3861: error: 'mfcr2_signaling_state_t' has no member named
'super_tones'
mfcr2.c:3863: error: 'mfcr2_signaling_state_t' has no member named
'super_tones'
mfcr2.c: At top level:
mfcr2.c:4364: fatal error: opening dependency file .deps/mfcr2.Tpo:
Permissi...
2001 Dec 06
2
Problem report: SHRINKER.ERR, fix to DEVICE_Open/CreateFileA?
...\\WINDOWS", 260)
0806d388:Ret kernel32.GetWindowsDirectoryA() retval=0000000a ret=0076180d
0806d388:Call kernel32.GetTempFileNameA(40612b1c
"C:\\WINDOWS\\",0075c538 "000",00000000,40616d3c) ret=007617b2
0806d388:trace:file:CreateFileA C:\WINDOWS\000cf6e.tmp GENERIC_WRITE
CREATE_NEW
0806d388:trace:dosfs:DOSFS_GetFullName C:\WINDOWS\000cf6e.tmp (last=0)
0806d388:trace:string:lstrcpynA (0x406119ec, "/mnt/dos", 1024)
0806d388:trace:dosfs:DOSFS_FindUnixName /mnt/dos,WINDOWS\000cf6e.tmp
0806d388:trace:heap:HeapAlloc (403b0000,00000002,0000022c): returning
4042ef68
0806d3...
2001 Sep 14
5
wine serial support
Hi,
I use wine to run a terminal emulator (NetTerm).
It connects to a Linux Server (it was meant to run from windows) that runs a commerce software.
This Linux commerce software sends the terminal emulator escape codes to interface with a
"ticket" printer attached to a serial port.
The reason to go thru all this problem is that the printer has a proprietary, closed source driver
for