This is the mail archive of the
cygwin
mailing list for the Cygwin project.
Size difference reported by /proc/partitions and lseek(SEEK_END) on block device
- From: "Loh, Joe" <joel at pivot3 dot com>
- To: <cygwin at cygwin dot com>
- Date: Tue, 6 Dec 2005 13:45:06 -0600
- Subject: Size difference reported by /proc/partitions and lseek(SEEK_END) on block device
Hello folks,
We have created the following test case to illustrate the behavior that
we observed. Hopefully someone out there can shed some light into the
subject matter. This behavior is observed running "CYGWIN_NT-5.2
P3PANDA 1.5.18(0.132/4/2) 2005-07-02 20:30 i686 unknown unknown Cygwin".
The block device size is different between the values reported in
/proc/partitions and lseek(SEEK_END). We have included a small 'C'
program that simply uses lseek to size the block device. Is this
expected of? If so, what accounts for the descrepancy? We have another
system with a 40G drives that doesn't show such discrepancy. We are
able to address the LBA beyond the range reported in /proc/partitions
using 'dd'. So, it's definitely addressable, but we ran into yet a
different issue as we approach the end of the block device using 'dd'.
We have open a different thread to address the 'dd' isssue under "Error
reported dd'ing close of end of block device with skip"
Here's the 'C' program listing:
#define _FILE_OFFSET_BITS 64
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
#include <unistd.h>
#include <stdio.h>
int main (int argc, char* const argv[])
{
int vFd;
off_t vSz;
if (argv[1] == NULL) {
printf("SYNTAX: %s <DEVICE>\n",argv[0]);
exit(1);
}
vFd = open(argv[1],O_RDONLY);
if (vFd < 0) {
perror("open");
exit(1);
}
vSz = lseek(vFd, (off_t)0, SEEK_END);
if (vSz < 0) {
perror("lseek");
exit(1);
}
close(vFd);
printf("%s size: %llu bytes (%llu of 1024-bytes
blocks)\n",argv[1],vSz,(vSz/1024));
exit(0);
}
Comparing the results from the lseek sizing with the /proc/partitions.
We got the following results:
$ cat /proc/partitions
major minor #blocks name
8 0 78124095 sda
8 1 15358108 sda1
8 2 104422 sda2
8 3 16386300 sda3
Results from lseek(SEEK_END):
/dev/sda size: 80000000000 bytes (78125000 of 1024-bytes blocks)
Here's the output from strace:
**********************************************
Program name: C:\cygwin\home\Administrator\lseekend.exe (pid 376, ppid
1)
App version: 1005.18, api: 0.132
DLL version: 1005.18, api: 0.132
DLL build: 2005-07-02 20:30
OS version: Windows NT-5.2
Heap size: 402653184
Date/Time: 2005-12-06 13:41:02
**********************************************
63 451 [main] lseekend 376 set_myself: myself->dwProcessId 376
72 523 [main] lseekend 376 time: 1133898062 = time (0)
795 1318 [main] lseekend 376 environ_init: 0x420238:
!C:=C:\cygwin\bin
153 1471 [main] lseekend 376 environ_init: 0x420250:
ALLUSERSPROFILE=C:\Documents and Settings\All Users
98 1569 [main] lseekend 376 environ_init: 0x420288:
APPDATA=C:\Documents and Settings\Administrator\Application Data
95 1664 [main] lseekend 376 environ_init: 0x4202D0:
CLIENTNAME=ASTOR
91 1755 [main] lseekend 376 environ_init: 0x4202E8:
CLUSTERLOG=C:\WINDOWS\Cluster\cluster.log
92 1847 [main] lseekend 376 environ_init: 0x420318:
COLORFGBG=0;default;15
95 1942 [main] lseekend 376 environ_init: 0x420338:
COLORTERM=rxvt-xpm
93 2035 [main] lseekend 376 environ_init: 0x420350:
COMMONPROGRAMFILES=C:\Program Files\Common Files
94 2129 [main] lseekend 376 environ_init: 0x420388:
COMPUTERNAME=P3PANDA
94 2223 [main] lseekend 376 environ_init: 0x4203A8:
COMSPEC=C:\WINDOWS\system32\cmd.exe
94 2317 [main] lseekend 376 environ_init: 0x4203D0:
CVS_RSH=/bin/ssh
95 2412 [main] lseekend 376 set_file_api_mode: File APIs set to
OEM
62 2474 [main] lseekend 376 parse_options: codepage (called func)
94 2568 [main] lseekend 376 parse_options: tty 1001
93 2661 [main] lseekend 376 parse_options: binmode 65536
95 2756 [main] lseekend 376 parse_options: title 1
91 2847 [main] lseekend 376 parse_options: returning
48 2895 [main] lseekend 376 environ_init: 0x4203E8:
CYGWIN=codepage:oem tty binmode title
95 2990 [main] lseekend 376 environ_init: 0x420460: DISPLAY=:0
92 3082 [main] lseekend 376 environ_init: 0x420470: EDITOR=vi
96 3178 [main] lseekend 376 environ_init: 0x420480:
FP_NO_HOST_CHECK=NO
100 3278 [main] lseekend 376 getwinenv: can't set native for HOME=
since no environ yet
104 3382 [main] lseekend 376 mount_info::conv_to_posix_path:
conv_to_posix_path (C:\cygwin\home\Administrator, no-keep-rel,
no-add-slash)
59 3441 [main] lseekend 376 normalize_win32_path:
C:\cygwin\home\Administrator = normalize_win32_path
(C:\cygwin\home\Administrator)
61 3502 [main] lseekend 376 mount_info::conv_to_posix_path:
/home/Administrator = conv_to_posix_path (C:\cygwin\home\Administrator)
143 3645 [main] lseekend 376 win_env::add_cache: posix
/home/Administrator
47 3692 [main] lseekend 376 win_env::add_cache: native
HOME=C:\cygwin\home\Administrator
49 3741 [main] lseekend 376 posify: env var converted to
HOME=/home/Administrator
97 3838 [main] lseekend 376 environ_init: 0x4204C0:
HOME=/home/Administrator
94 3932 [main] lseekend 376 environ_init: 0x420498: HOMEDRIVE=C:
94 4026 [main] lseekend 376 environ_init: 0x420610:
HOMEPATH=\Documents and Settings\Administrator
93 4119 [main] lseekend 376 environ_init: 0x420648:
HOSTNAME=P3PANDA
97 4216 [main] lseekend 376 environ_init: 0x420660:
INFOPATH=/usr/local/info:/usr/share/info:/usr/info:
91 4307 [main] lseekend 376 environ_init: 0x420698:
LOGONSERVER=\\P3PANDA
104 4411 [main] lseekend 376 environ_init: 0x4206B8: MAKE_MODE=unix
100 4511 [main] lseekend 376 environ_init: 0x4206D0:
MANPATH=/usr/local/man:/usr/share/man:/usr/man::/usr/ssl/man
156 4667 [main] lseekend 376 environ_init: 0x420718:
NUMBER_OF_PROCESSORS=2
80 4747 [main] lseekend 376 environ_init: 0x420738: OLDPWD=/proc
77 4824 [main] lseekend 376 environ_init: 0x420750: OS=Windows_NT
79 4903 [main] lseekend 376 getwinenv: can't set native for PATH=
since no environ yet
55 4958 [main] lseekend 376 normalize_posix_path: src .
134 5092 [main] lseekend 376 mount_info::conv_to_posix_path:
conv_to_posix_path (C:\cygwin\home\Administrator, no-keep-rel,
no-add-slash)
45 5137 [main] lseekend 376 normalize_win32_path:
C:\cygwin\home\Administrator = normalize_win32_path
(C:\cygwin\home\Administrator)
44 5181 [main] lseekend 376 mount_info::conv_to_posix_path:
/home/Administrator = conv_to_posix_path (C:\cygwin\home\Administrator)
43 5224 [main] lseekend 376 cwdstuff::get: posix
/home/Administrator
41 5265 [main] lseekend 376 cwdstuff::get: (/home/Administrator) =
cwdstuff::get (0x22EBC0, 260, 1, 0), errno 0
65 5330 [main] lseekend 376 normalize_posix_path:
/home/Administrator/ = normalize_posix_path (.)
54 5384 [main] lseekend 376 mount_info::conv_to_win32_path:
conv_to_win32_path (/home/Administrator)
50 5434 [main] lseekend 376 set_flags: flags: binary (0x2)
42 5476 [main] lseekend 376 mount_info::conv_to_win32_path:
src_path /home/Administrator, dst C:\cygwin\home\Administrator, flags
0xA, rc 0
104 5580 [main] lseekend 376 symlink_info::check: not a symlink
43 5623 [main] lseekend 376 symlink_info::check: 0 = symlink.check
(C:\cygwin\home\Administrator, 0x22E880) (0xA)
885 6508 [main] lseekend 376 set_privilege: 1 = set_privilege
((token 70C) SeChangeNotifyPrivilege, 1)
184 6692 [main] lseekend 376 path_conv::check:
this->path(C:\cygwin\home\Administrator), has_acls(1)
91 6783 [main] lseekend 376 mount_info::conv_to_posix_path:
conv_to_posix_path (C:\cygwin\usr\local\bin, keep-rel, no-add-slash)
42 6825 [main] lseekend 376 normalize_win32_path:
C:\cygwin\usr\local\bin = normalize_win32_path (C:\cygwin\usr\local\bin)
44 6869 [main] lseekend 376 mount_info::conv_to_posix_path:
/usr/local/bin = conv_to_posix_path (C:\cygwin\usr\local\bin)
42 6911 [main] lseekend 376 mount_info::conv_to_posix_path:
conv_to_posix_path (C:\cygwin\bin, keep-rel, no-add-slash)
42 6953 [main] lseekend 376 normalize_win32_path: C:\cygwin\bin =
normalize_win32_path (C:\cygwin\bin)
41 6994 [main] lseekend 376 mount_info::conv_to_posix_path:
/usr/bin = conv_to_posix_path (C:\cygwin\bin)
41 7035 [main] lseekend 376 mount_info::conv_to_posix_path:
conv_to_posix_path (C:\cygwin\bin, keep-rel, no-add-slash)
42 7077 [main] lseekend 376 normalize_win32_path: C:\cygwin\bin =
normalize_win32_path (C:\cygwin\bin)
41 7118 [main] lseekend 376 mount_info::conv_to_posix_path:
/usr/bin = conv_to_posix_path (C:\cygwin\bin)
41 7159 [main] lseekend 376 mount_info::conv_to_posix_path:
conv_to_posix_path (C:\cygwin\usr\X11R6\bin, keep-rel, no-add-slash)
42 7201 [main] lseekend 376 normalize_win32_path:
C:\cygwin\usr\X11R6\bin = normalize_win32_path (C:\cygwin\usr\X11R6\bin)
47 7248 [main] lseekend 376 mount_info::conv_to_posix_path:
/usr/X11R6/bin = conv_to_posix_path (C:\cygwin\usr\X11R6\bin)
42 7290 [main] lseekend 376 mount_info::conv_to_posix_path:
conv_to_posix_path (c:\WINDOWS\system32, keep-rel, no-add-slash)
41 7331 [main] lseekend 376 normalize_win32_path:
c:\WINDOWS\system32 = normalize_win32_path (c:\WINDOWS\system32)
42 7373 [main] lseekend 376 mount_info::conv_to_posix_path:
/cygdrive/c/WINDOWS/system32 = conv_to_posix_path (c:\WINDOWS\system32)
42 7415 [main] lseekend 376 mount_info::conv_to_posix_path:
conv_to_posix_path (c:\WINDOWS, keep-rel, no-add-slash)
41 7456 [main] lseekend 376 normalize_win32_path: c:\WINDOWS =
normalize_win32_path (c:\WINDOWS)
41 7497 [main] lseekend 376 mount_info::conv_to_posix_path:
/cygdrive/c/WINDOWS = conv_to_posix_path (c:\WINDOWS)
42 7539 [main] lseekend 376 mount_info::conv_to_posix_path:
conv_to_posix_path (c:\WINDOWS\System32\Wbem, keep-rel, no-add-slash)
41 7580 [main] lseekend 376 normalize_win32_path:
c:\WINDOWS\System32\Wbem = normalize_win32_path
(c:\WINDOWS\System32\Wbem)
42 7622 [main] lseekend 376 mount_info::conv_to_posix_path:
/cygdrive/c/WINDOWS/System32/Wbem = conv_to_posix_path
(c:\WINDOWS\System32\Wbem)
51 7673 [main] lseekend 376 mount_info::conv_to_posix_path:
conv_to_posix_path ("C, keep-rel, no-add-slash)
41 7714 [main] lseekend 376 mount_info::conv_to_posix_path: "C =
conv_to_posix_path ("C)
41 7755 [main] lseekend 376 mount_info::conv_to_posix_path:
conv_to_posix_path (C:\cygwin\Program Files\Symantec\Norton Ghost
2003\", keep-rel, no-add-slash)
42 7797 [main] lseekend 376 normalize_win32_path:
C:\cygwin\Program Files\Symantec\Norton Ghost 2003\" =
normalize_win32_path (C:\cygwin\Program Files\Symantec\Norton Ghost
2003\")
43 7840 [main] lseekend 376 mount_info::conv_to_posix_path:
/Program Files/Symantec/Norton Ghost 2003/" = conv_to_posix_path
(C:\cygwin\Program Files\Symantec\Norton Ghost 2003\")
42 7882 [main] lseekend 376 mount_info::conv_to_posix_path:
conv_to_posix_path (C:\cygwin\lib\lapack, keep-rel, no-add-slash)
42 7924 [main] lseekend 376 normalize_win32_path:
C:\cygwin\lib\lapack = normalize_win32_path (C:\cygwin\lib\lapack)
41 7965 [main] lseekend 376 mount_info::conv_to_posix_path:
/usr/lib/lapack = conv_to_posix_path (C:\cygwin\lib\lapack)
133 8098 [main] lseekend 376 win_env::add_cache: posix
/usr/local/bin:/usr/bin:/usr/bin:/usr/X11R6/bin:/cygdrive/c/WINDOWS/syst
em32:/cygdrive/c/WINDOWS:/cygdrive/c/WINDOWS/System32/Wbem:"C:/Program
Files/Symantec/Norton Ghost 2003/":/usr/lib/lapack
44 8142 [main] lseekend 376 win_env::add_cache: native
PATH=C:\cygwin\usr\local\bin;C:\cygwin\bin;C:\cygwin\bin;C:\cygwin\usr\X
11R6\bin;c:\WINDOWS\system32;c:\WINDOWS;c:\WINDOWS\System32\Wbem;"C;C:\c
ygwin\Program Files\Symantec\Norton Ghost 2003\";C:\cygwin\lib\lapack
44 8186 [main] lseekend 376 posify: env var converted to
PATH=/usr/local/bin:/usr/bin:/usr/bin:/usr/X11R6/bin:/cygdrive/c/WINDOWS
/system32:/cygdrive/c/WINDOWS:/cygdrive/c/WINDOWS/System32/Wbem:"C:/Prog
ram Files/Symantec/Norton Ghost 2003/":/usr/lib/lapack
85 8271 [main] lseekend 376 environ_init: 0x420848:
PATH=/usr/local/bin:/usr/bin:/usr/bin:/usr/X11R6/bin:/cygdrive/c/WINDOWS
/system32:/cygdrive/c/WINDOWS:/cygdrive/c/WINDOWS/System32/Wbem:"C:/Prog
ram Files/Symantec/Norton Ghost 2003/":/usr/lib/lapack
82 8353 [main] lseekend 376 environ_init: 0x420768:
PATHEXT=.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH
78 8431 [main] lseekend 376 environ_init: 0x4207A8:
PKG_CONFIG_PATH=/usr/X11R6/lib/pkgconfig
79 8510 [main] lseekend 376 environ_init: 0x4207D8:
PRINTER=NPICE37B3 on http://192.168.100.17 (from ASTOR) in session 0
79 8589 [main] lseekend 376 environ_init: 0x420828:
PROCESSOR_ARCHITECTURE=x86
78 8667 [main] lseekend 376 environ_init: 0x420C58:
PROCESSOR_IDENTIFIER=x86 Family 15 Model 4 Stepping 1, GenuineIntel
78 8745 [main] lseekend 376 environ_init: 0x420CA0:
PROCESSOR_LEVEL=15
77 8822 [main] lseekend 376 environ_init: 0x420CB8:
PROCESSOR_REVISION=0401
78 8900 [main] lseekend 376 environ_init: 0x420CD8:
PROGRAMFILES=C:\Program Files
78 8978 [main] lseekend 376 environ_init: 0x4204B0: PROMPT=$P$G
77 9055 [main] lseekend 376 environ_init: 0x420D00:
PS1=\[\e]0;\w\a\]\n\[\e[32m\]\u@\h \[\e[33m\]\w\[\e[0m\]\n\$
78 9133 [main] lseekend 376 environ_init: 0x420D48:
PWD=/home/Administrator
94 9227 [main] lseekend 376 environ_init: 0x420D68:
SESSIONNAME=RDP-Tcp#5
96 9323 [main] lseekend 376 environ_init: 0x420D88: SHLVL=1
78 9401 [main] lseekend 376 environ_init: 0x420D98: SYSTEMDRIVE=C:
77 9478 [main] lseekend 376 environ_init: 0x420DB0:
SYSTEMROOT=C:\WINDOWS
78 9556 [main] lseekend 376 getwinenv: can't set native for TEMP=
since no environ yet
78 9634 [main] lseekend 376 mount_info::conv_to_posix_path:
conv_to_posix_path (c:\DOCUME~1\ADMINI~1\LOCALS~1\Temp, no-keep-rel,
no-add-slash)
41 9675 [main] lseekend 376 normalize_win32_path:
c:\DOCUME~1\ADMINI~1\LOCALS~1\Temp = normalize_win32_path
(c:\DOCUME~1\ADMINI~1\LOCALS~1\Temp)
42 9717 [main] lseekend 376 mount_info::conv_to_posix_path:
/cygdrive/c/DOCUME~1/ADMINI~1/LOCALS~1/Temp = conv_to_posix_path
(c:\DOCUME~1\ADMINI~1\LOCALS~1\Temp)
121 9838 [main] lseekend 376 win_env::add_cache: posix
/cygdrive/c/DOCUME~1/ADMINI~1/LOCALS~1/Temp
40 9878 [main] lseekend 376 win_env::add_cache: native
TEMP=c:\DOCUME~1\ADMINI~1\LOCALS~1\Temp
41 9919 [main] lseekend 376 posify: env var converted to
TEMP=/cygdrive/c/DOCUME~1/ADMINI~1/LOCALS~1/Temp
76 9995 [main] lseekend 376 environ_init: 0x420E00:
TEMP=/cygdrive/c/DOCUME~1/ADMINI~1/LOCALS~1/Temp
79 10074 [main] lseekend 376 environ_init: 0x420DD0: TERM=xterm
78 10152 [main] lseekend 376 environ_init: 0x420DE0:
TEXDOCVIEW_DVI=cygstart %s
82 10234 [main] lseekend 376 environ_init: 0x420F70:
TEXDOCVIEW_HTML=cygstart %s
78 10312 [main] lseekend 376 environ_init: 0x420F90:
TEXDOCVIEW_PDF=cygstart %s
78 10390 [main] lseekend 376 environ_init: 0x420FB0:
TEXDOCVIEW_PS=cygstart %s
89 10479 [main] lseekend 376 environ_init: 0x420FD0:
TEXDOCVIEW_TXT=cygstart %s
79 10558 [main] lseekend 376 getwinenv: can't set native for TMP=
since no environ yet
78 10636 [main] lseekend 376 mount_info::conv_to_posix_path:
conv_to_posix_path (c:\DOCUME~1\ADMINI~1\LOCALS~1\Temp, no-keep-rel,
no-add-slash)
42 10678 [main] lseekend 376 normalize_win32_path:
c:\DOCUME~1\ADMINI~1\LOCALS~1\Temp = normalize_win32_path
(c:\DOCUME~1\ADMINI~1\LOCALS~1\Temp)
42 10720 [main] lseekend 376 mount_info::conv_to_posix_path:
/cygdrive/c/DOCUME~1/ADMINI~1/LOCALS~1/Temp = conv_to_posix_path
(c:\DOCUME~1\ADMINI~1\LOCALS~1\Temp)
115 10835 [main] lseekend 376 win_env::add_cache: posix
/cygdrive/c/DOCUME~1/ADMINI~1/LOCALS~1/Temp
41 10876 [main] lseekend 376 win_env::add_cache: native
TMP=c:\DOCUME~1\ADMINI~1\LOCALS~1\Temp
41 10917 [main] lseekend 376 posify: env var converted to
TMP=/cygdrive/c/DOCUME~1/ADMINI~1/LOCALS~1/Temp
76 10993 [main] lseekend 376 environ_init: 0x421020:
TMP=/cygdrive/c/DOCUME~1/ADMINI~1/LOCALS~1/Temp
78 11071 [main] lseekend 376 environ_init: 0x420FF0:
USER=Administrator
83 11154 [main] lseekend 376 environ_init: 0x421008:
USERDOMAIN=P3PANDA
78 11232 [main] lseekend 376 environ_init: 0x421190:
USERNAME=Administrator
78 11310 [main] lseekend 376 environ_init: 0x4211B0:
USERPROFILE=C:\Documents and Settings\Administrator
77 11387 [main] lseekend 376 environ_init: 0x4211E8: VISUAL=vi
78 11465 [main] lseekend 376 environ_init: 0x4211F8:
WINDIR=C:\WINDOWS
77 11542 [main] lseekend 376 environ_init: 0x421210:
WINDOWID=6565432
78 11620 [main] lseekend 376 environ_init: 0x421228:
_=/usr/bin/strace
50 11670 [main] lseekend 376 pinfo_init: Set nice to 0
41 11711 [main] lseekend 376 pinfo_init: pid 376, pgid 376
717 12428 [main] lseekend 376 set_privilege: 0 = set_privilege
((token 738) SeRestorePrivilege, 1)
63 12491 [main] lseekend 376 set_privilege: 1 = set_privilege
((token 738) SeChangeNotifyPrivilege, 1)
109 12600 [main] lseekend 376 dtable::extend: size 32, fds
0x611556C0
56 12656 [main] lseekend 376 normalize_posix_path: src /etc/passwd
42 12698 [main] lseekend 376 normalize_posix_path: /etc/passwd =
normalize_posix_path (/etc/passwd)
42 12740 [main] lseekend 376 mount_info::conv_to_win32_path:
conv_to_win32_path (/etc/passwd)
42 12782 [main] lseekend 376 set_flags: flags: binary (0x2)
41 12823 [main] lseekend 376 mount_info::conv_to_win32_path:
src_path /etc/passwd, dst C:\cygwin\etc\passwd, flags 0xA, rc 0
87 12910 [main] lseekend 376 symlink_info::check: not a symlink
42 12952 [main] lseekend 376 symlink_info::check: 0 = symlink.check
(C:\cygwin\etc\passwd, 0x22E830) (0xA)
44 12996 [main] lseekend 376 path_conv::check:
this->path(C:\cygwin\etc\passwd), has_acls(1)
218 13214 [main] lseekend 376 etc::test_file_change: FindFirstFile
succeeded
357 13571 [main] lseekend 376 pwdgrp::load: /etc/passwd curr_lines 6
43 13614 [main] lseekend 376 pwdgrp::load: /etc/passwd load
succeeded
61 13675 [main] lseekend 376 normalize_posix_path: src /etc/group
41 13716 [main] lseekend 376 normalize_posix_path: /etc/group =
normalize_posix_path (/etc/group)
111 13827 [main] lseekend 376 mount_info::conv_to_win32_path:
conv_to_win32_path (/etc/group)
44 13871 [main] lseekend 376 set_flags: flags: binary (0x2)
40 13911 [main] lseekend 376 mount_info::conv_to_win32_path:
src_path /etc/group, dst C:\cygwin\etc\group, flags 0xA, rc 0
79 13990 [main] lseekend 376 symlink_info::check: not a symlink
43 14033 [main] lseekend 376 symlink_info::check: 0 = symlink.check
(C:\cygwin\etc\group, 0x22E7F0) (0xA)
48 14081 [main] lseekend 376 path_conv::check:
this->path(C:\cygwin\etc\group), has_acls(1)
116 14197 [main] lseekend 376 etc::test_file_change: FindFirstFile
succeeded
373 14570 [main] lseekend 376 pwdgrp::load: /etc/group curr_lines 17
43 14613 [main] lseekend 376 pwdgrp::load: /etc/group load
succeeded
60 14673 [main] lseekend 376 internal_getlogin:
SetTokenInformation(TokenPrimaryGroup), Win32 error 1308
46 14719 [main] lseekend 376 internal_getlogin:
SetTokenInformation(TokenPrimaryGroup), Win32 error 1308
42 14761 [main] lseekend 376 cygheap_user::ontherange: what 2, pw
0x421528
43 14804 [main] lseekend 376 cygheap_user::ontherange: HOME is
already in the environment /home/Administrator
269 15073 [main] lseekend 376 sigproc_init: process/signal handling
enabled(1001)
289 15362 [main] lseekend 376 tty_list::allocate_tty: console 200A2
already associated with tty0
73 15435 [main] lseekend 376 tty_list::allocate_tty: console
0x200A2 associated with tty0
5 15440 [sig] lseekend 376 wait_sig: myself->dwProcessId 376
97 15537 [sig] lseekend 376 wait_sig: entering ReadFile loop,
readsig 0x700, myself->sendsig 0x6F8
980 16517 [main] lseekend 376 build_argv: argv[0] = 'lseekend.exe'
54 16571 [main] lseekend 376 build_argv: argv[1] = '/dev/sda'
44 16615 [main] lseekend 376 build_argv: argc 2
139 16754 [main] lseekend 376 build_fh_pc: fh 0x61155828
50 16804 [main] lseekend 376 fhandler_base::set_flags: flags
0x10002, supplied_bin 0x0
44 16848 [main] lseekend 376 fhandler_base::set_flags:
O_TEXT/O_BINARY set in flags 0x10000
44 16892 [main] lseekend 376 fhandler_base::set_flags: filemode set
to binary
45 16937 [main] lseekend 376 fhandler_base::init: created new
fhandler_base for handle 0x668, bin 1
137 17074 [main] lseekend 376 build_fh_pc: fh 0x61155A30
44 17118 [main] lseekend 376 fhandler_base::set_flags: flags
0x10002, supplied_bin 0x0
45 17163 [main] lseekend 376 fhandler_base::set_flags:
O_TEXT/O_BINARY set in flags 0x10000
44 17207 [main] lseekend 376 fhandler_base::set_flags: filemode set
to binary
44 17251 [main] lseekend 376 fhandler_base::init: created new
fhandler_base for handle 0x664, bin 1
119 17370 [main] lseekend 376 build_fh_pc: fh 0x61155C38
44 17414 [main] lseekend 376 fhandler_base::set_flags: flags
0x10002, supplied_bin 0x0
45 17459 [main] lseekend 376 fhandler_base::set_flags:
O_TEXT/O_BINARY set in flags 0x10000
46 17505 [main] lseekend 376 fhandler_base::set_flags: filemode set
to binary
44 17549 [main] lseekend 376 fhandler_base::init: created new
fhandler_base for handle 0x6D8, bin 1
143 17692 [main] lseekend 376 set_console_title: title 'lseekend'
67 17759 [main] lseekend 376 dll_crt0_1: user_data->main 0x401050
45 17804 [main] lseekend 376 __set_errno: void
dll_crt0_1(char*):880 val 0
45 17849 [main] lseekend 376 wait_for_sigthread: wait_sig_inited
0x6FC
139 17988 [main] lseekend 376 open: open (/dev/sda, 0x0)
47 18035 [main] lseekend 376 normalize_posix_path: src /dev/sda
44 18079 [main] lseekend 376 normalize_posix_path: /dev/sda =
normalize_posix_path (/dev/sda)
45 18124 [main] lseekend 376 mount_info::conv_to_win32_path:
conv_to_win32_path (/dev/sda)
51 18175 [main] lseekend 376 mount_info::conv_to_win32_path:
src_path /dev/sda, dst \Device\Harddisk0\Partition0, flags 0x2, rc 0
55 18230 [main] lseekend 376 build_fh_pc: fh 0x61155E40
104 18334 [main] lseekend 376 fhandler_base::open:
(\Device\Harddisk0\Partition0, 0x10000)
177 18511 [main] lseekend 376 fhandler_base::set_flags: flags
0x10000, supplied_bin 0x10000
63 18574 [main] lseekend 376 fhandler_base::set_flags:
O_TEXT/O_BINARY set in flags 0x10000
46 18620 [main] lseekend 376 fhandler_base::set_flags: filemode set
to binary
43 18663 [main] lseekend 376 fhandler_base::open: 0 = NtCreateFile
(0x6FC, 80100000, \Device\Harddisk0\Partition0, io, NULL, 0, 7, 1, 20,
NULL, 0)
46 18709 [main] lseekend 376 fhandler_base::open: 1 =
fhandler_base::open (\Device\Harddisk0\Partition0, 0x10000)
142 18851 [main] lseekend 376 open: 3 = open (/dev/sda, 0x0)
64 18915 [main] lseekend 376 fhandler_dev_floppy::lseek: disk
geometry: (9726 cyl)*(255 trk)*(63 sec)*(512 bps)
103 19018 [main] lseekend 376 fhandler_dev_floppy::lseek: partition
info: 0 (-1604378624)
46 19064 [main] lseekend 376 fhandler_dev_floppy::lseek: drive
size: -1604378624
49 19113 [main] lseekend 376 lseek64: 80000000000 = lseek (3, 0, 2)
44 19157 [main] lseekend 376 close: close (3)
49 19206 [main] lseekend 376 fhandler_base::close: closing
'/dev/sda' handle 0x6FC
111 19317 [main] lseekend 376 close: 0 = close (3)
112 19429 [main] lseekend 376 fhandler_base::fstat: here
50 19479 [main] lseekend 376 fstat64: 0 = fstat (1, 0x22D1B0)
334 19813 [main] lseekend 376 close: close (0)
53 19866 [main] lseekend 376 fhandler_base::close: closing ''
handle 0x668
54 19920 [main] lseekend 376 close: 0 = close (0)
420 20340 [main] lseekend 376 fhandler_base::write: binary write
147 20487 [main] lseekend 376 close: close (1)
50 20537 [main] lseekend 376 fhandler_base::close: closing ''
handle 0x664
53 20590 [main] lseekend 376 close: 0 = close (1)
444 21034 [main] lseekend 376 close: close (2)
49 21083 [main] lseekend 376 fhandler_base::close: closing ''
handle 0x6D8
53 21136 [main] lseekend 376 close: 0 = close (2)
222 21358 [main] lseekend 376 do_exit: do_exit (0), exit_state 0
53 21411 [main] lseekend 376 void: 0x0 = signal (20, 0x1)
50 21461 [main] lseekend 376 void: 0x0 = signal (1, 0x1)
49 21510 [main] lseekend 376 void: 0x0 = signal (2, 0x1)
49 21559 [main] lseekend 376 void: 0x0 = signal (3, 0x1)
51 21610 [main] lseekend 376 sigproc_terminate: entering
63 21673 [main] lseekend 376 proc_terminate: nprocs 0
4 21677 [sig] lseekend 376 wait_sig: done
50 21727 [main] lseekend 376 proc_terminate: leaving
48 21775 [sig] lseekend 376 _cygtls::remove: wait 0x0
229 22004 [main] lseekend 376 set_console_title: title
'rxvt00000600'
53 22057 [main] lseekend 376 do_exit: 376 == sid 376, send SIGHUP
to children
77 22134 [main] lseekend 376 sigproc_terminate: sigproc handling
not active
40 22174 [main] lseekend 376 proc_terminate: nprocs 0
40 22214 [main] lseekend 376 proc_terminate: leaving
42 22256 [main] lseekend 376 __to_clock_t: dwHighDateTime 0,
dwLowDateTime 0
40 22296 [main] lseekend 376 __to_clock_t: total 00000000 00000000
41 22337 [main] lseekend 376 __to_clock_t: dwHighDateTime 0,
dwLowDateTime 0
40 22377 [main] lseekend 376 __to_clock_t: total 00000000 00000000
428 22805 [main] lseekend 376
pinfo::maybe_set_exit_code_from_windows: pid 376, exit value - old
0x80000000, windows 0xDEADBEEF, cygwin 0x80000000
--
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Problem reports: http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ: http://cygwin.com/faq/