FreeBSD Bugzilla – Attachment 84 Details for
Bug 461
Bogus lseek warning when dump large filesystems
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
file.diff
file.diff (text/plain), 1.15 KB, created by
mark tinguely
on 1995-05-30 08:00:02 UTC
(
hide
)
Description:
file.diff
Filename:
MIME Type:
Creator:
mark tinguely
Created:
1995-05-30 08:00:02 UTC
Size:
1.15 KB
patch
obsolete
>*** traverse.c.orig Thu May 26 01:34:03 1994 >--- traverse.c Tue May 30 09:36:15 1995 >*************** >*** 558,564 **** > extern int errno; > > loop: >! if ((int)lseek(diskfd, ((off_t)blkno << dev_bshift), 0) < 0) > msg("bread: lseek fails\n"); > if ((cnt = read(diskfd, buf, size)) == size) > return; >--- 558,565 ---- > extern int errno; > > loop: >! if (lseek(diskfd, ((off_t)blkno << dev_bshift), 0) != >! ((off_t)blkno << dev_bshift)) > msg("bread: lseek fails\n"); > if ((cnt = read(diskfd, buf, size)) == size) > return; >*************** >*** 598,604 **** > */ > bzero(buf, size); > for (i = 0; i < size; i += dev_bsize, buf += dev_bsize, blkno++) { >! if ((int)lseek(diskfd, ((off_t)blkno << dev_bshift), 0) < 0) > msg("bread: lseek2 fails!\n"); > if ((cnt = read(diskfd, buf, (int)dev_bsize)) == dev_bsize) > continue; >--- 599,606 ---- > */ > bzero(buf, size); > for (i = 0; i < size; i += dev_bsize, buf += dev_bsize, blkno++) { >! if (lseek(diskfd, ((off_t)blkno << dev_bshift), 0) != >! ((off_t)blkno << dev_bshift)) > msg("bread: lseek2 fails!\n"); > if ((cnt = read(diskfd, buf, (int)dev_bsize)) == dev_bsize) > continue;
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 461
: 84