forked from freebsd/freebsd-ports
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
While here refresh patches with "make makepatch". PR: 280800 MFH: 2024Q3
- Loading branch information
Showing
3 changed files
with
29 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
--- utils/iscsi-discard.c.orig 2024-02-05 23:51:38 UTC | ||
+++ utils/iscsi-discard.c | ||
@@ -220,7 +220,11 @@ int main(int argc, char *argv[]) | ||
|
||
capacity = block_length * (rc16->returned_lba + 1); | ||
if (offset > capacity) { | ||
+#ifdef __i386__ | ||
+ fprintf(stderr,"Offset(%llu) exceeds capacity(%llu)\n", offset, capacity); | ||
+#else | ||
fprintf(stderr,"Offset(%lu) exceeds capacity(%lu)\n", offset, capacity); | ||
+#endif | ||
goto free_task; | ||
} | ||
|