search for: fh

Displaying 20 results from an estimated 1110 matches for "fh".

2019 Jul 01
0
[PATCH 1/6] p2v: move kernel config to perl script
...+ 'output=s' => \$output, + 'help' => sub { pod2usage(1); }, +) or pod2usage(2); +die "$progname: Option --file not specified.\n" unless $filename; +# die "$progname: Option --output not specified.\n" unless $output; + +sub print_generated_header { + my $fh = shift; + print $fh <<"EOF"; +/* libguestfs generated file + * WARNING: THIS FILE IS GENERATED FROM THE FOLLOWING FILES: + * $filename + * ANY CHANGES YOU MAKE TO THIS FILE WILL BE LOST. + */ + +EOF +} + +sub generate_config_struct { + my ($fh, $name, $fields) = @_; + #...
2007 Nov 19
2
pine 4.64 with CentOS with LDAP
...to add LDAP feature. I am having trouble with compiling it with LDAP. I built the latest stable openldap-2.3.38 I did include this when I built openldap: ./configure --with-cyrus-sasl Compile process gives me these errors below. Any clue as what I may be doing wrong? Thanks, Farid /p1/fh/openldap-2.3.38/libraries/libldap/cyrus.c:88: undefined reference to `sasl_version' /p1/fh/openldap-2.3.38/libraries/libldap/cyrus.c:124: undefined reference to `sasl_client_init' ../ldap/lib/libldap.a(cyrus.o): In function `ldap_int_sasl_open': /p1/fh/openldap-2.3.38/libraries/liblda...
2004 Jan 14
0
Problems while mixing protocols
...e traffic by IP addresses and by 802.1q vlans. But when I add 802.1q filter filters output looks strange. Maybe I''m missing some options to TC? Thanks, Mindaugas # ./bin/tc -s -d filter show dev eth0 filter parent 1: protocol ip pref 1 u32 filter parent 1: protocol ip pref 1 u32 fh 800: ht divisor 1 filter parent 1: protocol ip pref 1 u32 fh 800::800 order 2048 key ht 800 bkt 0 flowid 1:10 match d5e2b800/fffffe00 at 12 filter parent 1: protocol ip pref 1 u32 fh 800::801 order 2049 key ht 800 bkt 0 flowid 1:11 match d5e28af0/fffffff8 at 12 filter parent 1: protocol ip pref...
2008 May 06
4
DeviceIoControl + IOCTL_DISK_GET_DRIVE_GEOMETRY problem
Hi all, Ok, what am I doing wrong here? require ''windows/device_io'' require ''windows/handle'' require ''windows/error'' include Windows::DeviceIO include Windows::Handle include Windows::Error fh = File.open(''test.txt'') # Assume you have this handle = get_osfhandle(fh.fileno) if handle == INVALID_HANDLE_VALUE puts "get_osfhandle failed" fh.close exit end buf = 0.chr * 24 # sizeof(DISK_GEOMETRY) bytes = [0].pack(''L'') bool = Device...
2004 Nov 16
2
win32-file: nread and nwrite
...e got alpha versions of nread and nwrite now added to the win32-file class in CVS. They seem to work fine, although I''ve noticed one bug in the File#read method. Let''s say we have a text file with "hello world" in it. If I call nread with no arguments, it works fine: fh = File.nopen("C:\\test.txt") p fh.nread -> "hello world" fh.close But, if I try to specify an argument, it seems to always want to return 9 to 11 bytes for some reason: fh = File.nopen("C:\\test.txt") p fh.nread(5) -> "hello\001u\002\003\000\002" fh.c...
2007 Nov 20
3
Problem deleting tc rules
...ce with dynamically attacched classes/qdiscs/filters. There is a hashing filter that maps the last octet of an user''s IP address to a class (and associated qdisc). The "empty" filter looks like this: filter parent 1: protocol ip pref 5 u32 filter parent 1: protocol ip pref 5 u32 fh 2: ht divisor 256 filter parent 1: protocol ip pref 5 u32 fh 800: ht divisor 1 filter parent 1: protocol ip pref 5 u32 fh 800::800 order 2048 key ht 800 bkt 0 link 2: (rule hit 0 success 0) match 00000000/00000000 at 12 (success 0 ) hash mask 000000ff at 16 I''m adding the hash ent...
2007 Oct 28
3
tc filter question
Dear all, I have big question in my mind about "tc filter" sintax. If I give "tc -s -d filter sh dev eth0" command, then the output is like below : filter parent 1: protocol ip pref 1 u32 filter parent 1: protocol ip pref 1 u32 fh 800: ht divisor 1 filter parent 1: protocol ip pref 1 u32 fh 800::800 order 2048 key ht 800 bkt 0 flowid 1:2 (rule hit 21553629 success 37907) match 00160000/ffff0000 at 20 (success 37907 ) ... My question is : 1. What is "fh 800:" and "fh 800::800" mean ? 2. How I change...
2019 Jul 01
8
[PATCH 0/6] p2v: start making it independent
As preliminary steps in splitting virt-p2v to an own repository, start making p2v more independent within libguestfs. This is accomplished by the following changes: - generate the p2v kernel config sources & docs at build time using a Perl script, rather than the generator (so no need for OCaml when building from git, and no generated sources in dist tarballs) - create two local test
2004 Jun 22
5
htb filter
...ch ip dst 192.168.0.2/32 flowid 2:2002 At this point everything work fine, both User 1 and User 2 can get close to 256kbit from both networks in same time. But when I try to show filters I get: # tc filter ls dev eth0 filter parent 2: protocol ip pref 1 u32 filter parent 2: protocol ip pref 1 u32 fh 802: ht divisor 1 filter parent 2: protocol ip pref 1 u32 fh 802::800 order 2048 key ht 802 bkt 0 flowid 2:2001 match c0a80001/ffffffff at 16 filter parent 2: protocol ip pref 1 u32 fh 802::801 order 2049 key ht 802 bkt 0 flowid 2:2002 match c0a80002/ffffffff at 16 filter parent 2: protocol ip...
2006 Apr 07
0
PRIO and u32 matching problem
...nt 0 bytes 0 pkts (dropped 0, overlimits 0) class prio 1:2 parent 1: Sent 0 bytes 0 pkts (dropped 0, overlimits 0) class prio 1:3 parent 1: Sent 0 bytes 0 pkts (dropped 0, overlimits 0) tc -s -d filter show dev eth0 filter parent 1: protocol ip pref 1 u32 filter parent 1: protocol ip pref 1 u32 fh 800: ht divisor 1 filter parent 1: protocol ip pref 1 u32 fh 800::800 order 2048 key ht 800 bkt 0 flowid 1:1 (rule hit 45901 success 3595) match 00100000/00ff0000 at 0 (success 3595 ) filter parent 1: protocol ip pref 1 u32 fh 800::801 order 2049 key ht 800 bkt 0 flowid 1:1 (rule hit 42306 succ...
2014 Dec 19
2
[PATCH RFC 2/5] s390: add pci_iomap_range
...ertions(+), 7 deletions(-) > > diff --git a/arch/s390/include/asm/pci_io.h b/arch/s390/include/asm/pci_io.h > index d194d54..25228b3 100644 > --- a/arch/s390/include/asm/pci_io.h > +++ b/arch/s390/include/asm/pci_io.h > @@ -16,6 +16,7 @@ > struct zpci_iomap_entry { > u32 fh; > u8 bar; > + u16 count; > }; > > extern struct zpci_iomap_entry *zpci_iomap_start; > diff --git a/arch/s390/pci/pci.c b/arch/s390/pci/pci.c > index 2fa7b14..51cb653 100644 > --- a/arch/s390/pci/pci.c > +++ b/arch/s390/pci/pci.c > @@ -259,7 +259,10 @@ void __iowr...
2014 Dec 19
2
[PATCH RFC 2/5] s390: add pci_iomap_range
...ertions(+), 7 deletions(-) > > diff --git a/arch/s390/include/asm/pci_io.h b/arch/s390/include/asm/pci_io.h > index d194d54..25228b3 100644 > --- a/arch/s390/include/asm/pci_io.h > +++ b/arch/s390/include/asm/pci_io.h > @@ -16,6 +16,7 @@ > struct zpci_iomap_entry { > u32 fh; > u8 bar; > + u16 count; > }; > > extern struct zpci_iomap_entry *zpci_iomap_start; > diff --git a/arch/s390/pci/pci.c b/arch/s390/pci/pci.c > index 2fa7b14..51cb653 100644 > --- a/arch/s390/pci/pci.c > +++ b/arch/s390/pci/pci.c > @@ -259,7 +259,10 @@ void __iowr...
2005 Jan 27
1
question about filter priorities and "tc -d filter show" output
...e 1Mbit ceil 1Mbit # tc filter add dev eth0 protocol ip parent 1:0 prio 130 u32 match ip dst \ > 1.1.1.10 flowid 1:130 The output of "tc -d filter show dev eth0" makes sense to me and looks like this: filter parent 1: protocol ip pref 130 u32 filter parent 1: protocol ip pref 130 u32 fh 800: ht divisor 1 filter parent 1: protocol ip pref 130 u32 fh 800::800 order 2048 key ht 800 bkt 0 flowid 1:130 match 0101010a/ffffffff at 16 If I add a third class and a filter for it, things start looking weird to me: # tc filter add dev eth0 protocol ip parent 1:0 prio 131 u32 match ip dst...
2009 Nov 04
0
[LLVMdev] just-in-time debugging of assertion failures with MSVC
...longer possible to use Just-In-Time Debugger at the point of assertion failure. The call stack is printed instead and the debugger stops at some strange location with the call stack like the following: > msvcr80d.dll!_NMSG_WRITE(int rterrnum=5111881) Line 198 C msvcr80d.dll!_close_nolock(int fh=7209065) Line 93 + 0x67 bytes C msvcr80d.dll!_close_nolock(int fh=5111881) Line 93 + 0x67 bytes C msvcr80d.dll!_close_nolock(int fh=7209065) Line 93 + 0x67 bytes C msvcr80d.dll!_close_nolock(int fh=6619238) Line 93 + 0x67 bytes C libmmd.dll!0069006e() [Frames below may be incorrect an...
2016 Feb 09
2
Compilation failure using mingw-w64 and gcc-5.3.0
...s -Winline -Wdeclaration-after-statement -D_FORTIFY_SOURCE=2 -msse2 -MT decode.o -MD -MP -MF $depbase.Tpo -c -o decode.o decode.c &&\ mv -f $depbase.Tpo $depbase.Po decode.c: In function 'DecoderSession_destroy': decode.c:270:5: error: unknown type name 'HANDLE' HANDLE fh = CreateFile_utf8(d->outfilename, GENERIC_READ|GENERIC_WRITE, FILE_SHARE_READ|FILE_SHARE_WRITE, NULL, OPEN_EXISTING, FILE_ATTRIBUTE_NORMAL, NULL); ^ decode.c:270:17: warning: implicit declaration of function 'CreateFile_utf8' [-Wimplicit-function-declaration] HANDLE fh = Create...
2008 Apr 30
8
Playing with NtQueryInformationFile
...or NtQueryInformationFile = API.new(''NtQueryInformationFile'', ''LPPLL'', ''L'', ''ntdll'') # http://msdn.microsoft.com/en-us/library/cc232064.aspx FileNameInformation = 9 FileStandardInformation = 5 STATUS_SUCCESS = 0 fh = File.open(''test.txt'', ''w'') fh.puts "hello" handle = get_osfhandle(fh.fileno) if handle == INVALID_HANDLE_VALUE puts "ERROR, get_osfhandle() : " + get_last_error fh.close rescue nil File.delete(''test.txt'') exit...
2016 Feb 08
2
Compilation failure using mingw-w64 and gcc-5.3.0
Hello, Upon compiling the flac tree today, after many successful compilations over the last few weeks, a new error is appearing before compilation bails out. This is a cross-compilation using gcc-5.3.0 running on GNU/Linux, with the objects being built for a mingw-w64-x86_64 host. Among other things, the compiler is looking for windows_unicode_filenames.h but it isn't there. Also, I'm
2005 Dec 09
0
error in TC FILTER documentation ???
...r ls dev imq0 filter parent 1: protocol ip pref 1 fw filter parent 1: protocol ip pref 1 fw handle 0x28 classid 1:3 PREF 1 = PRIO 1 filter parent 1: protocol ip pref 49151 u32 PREF 49151 = PRIO 0 !! then PRIO 0 has low prio that PRIO 1. filter parent 1: protocol ip pref 49151 u32 fh 802: ht divisor 1 filter parent 1: protocol ip pref 49151 u32 fh 802::800 order 2048 key ht 802 bkt 0 flowid 1:1020 match ac100a0c/ffffffff at 12 filter parent 1: protocol ip pref 49151 u32 fh 801: ht divisor 1 filter parent 1: protocol ip pref 49151 u32 fh 801::800 order 2048 key ht 801 bkt 0 fl...
2014 Sep 26
4
Patch to add buffering to decoding too
...ool DecoderSession_process(DecoderSession *d) /* write the WAVE/AIFF headers if necessary */ if(!d->analysis_mode && !d->test_only && d->format != FORMAT_RAW) { +#ifdef _WIN32 + if(strcmp(outfilename, "-") && d->total_samples > 0) { + HANDLE fh = CreateFile_utf8(outfilename, GENERIC_READ|GENERIC_WRITE, FILE_SHARE_READ|FILE_SHARE_WRITE, NULL, OPEN_EXISTING, FILE_ATTRIBUTE_NORMAL, NULL); + if(fh != INVALID_HANDLE_VALUE) { + if (GetFileType(fh) == FILE_TYPE_DISK) { + LARGE_INTEGER size; + size.QuadPart = d->total_samples * d-...
2014 Sep 27
0
Patch to add buffering to decoding too
...on *d, FLAC__bool is_ogg, FLAC__ void DecoderSession_destroy(DecoderSession *d, FLAC__bool error_occurred) { if(0 != d->fout && d->fout != stdout) { +#ifdef _WIN32 + if(!error_occurred) { + FLAC__off_t written_size = ftello(d->fout); + if(written_size > 0) { + HANDLE fh = CreateFile_utf8(d->outfilename, GENERIC_READ|GENERIC_WRITE, FILE_SHARE_READ|FILE_SHARE_WRITE, NULL, OPEN_EXISTING, FILE_ATTRIBUTE_NORMAL, NULL); + if(fh != INVALID_HANDLE_VALUE) { + if(GetFileType(fh) == FILE_TYPE_DISK) { + LARGE_INTEGER size; + size.QuadPart = written_size; +...