Opened 10 years ago
Last modified 5 years ago
#2418 new enhancement
t.unregister: circumvent OS limit for "maps"-parameter input
Reported by: | sbl | Owned by: | |
---|---|---|---|
Priority: | normal | Milestone: | 7.8.3 |
Component: | Temporal | Version: | unspecified |
Keywords: | Cc: | ||
CPU: | Unspecified | Platform: | Linux |
Description
In t.unregister the "maps" parameter seems to be limited to ca. 5000 maps.
I have a strds with ca. 20k raster maps and tried to remove all by piping the output from t.rast.list to the "maps" parameter in t.unregister. After some testing I found out that the "maps" parameter works fine with 5000 maps, but with 6000 maps and more I got an "Argument list to long" error.
However, unregistering of all 20k maps worked fine when output from t.rast.list was stored in a file and then t.unregister`s "file" parameter used.
BTW, maybe a flag for unregistering all maps in a stds would be useful?
Change History (15)
comment:1 by , 10 years ago
comment:5 by , 8 years ago
Milestone: | 7.2.1 → 7.2.2 |
---|
comment:8 by , 7 years ago
Milestone: | → 7.2.4 |
---|
comment:10 by , 6 years ago
I would close this as wontfix, since the reported issue comes from a limitation of the OS as explained in comment:1. The request for a flag to unregister all maps (cool!) should be filed in a new ticket, IMO.
comment:11 by , 6 years ago
Milestone: | 7.2.4 → 7.8.0 |
---|---|
Summary: | t.unregister: "maps"-parameter limited to ca. 5000 maps → t.unregister: circumvent OS limit for "maps"-parameter input |
Type: | defect → enhancement |
comment:15 by , 5 years ago
Milestone: | → 7.8.3 |
---|
Replying to sbl:
This is not a defect, its the os specific limitation of argument lists[1].
The reason for the input file option is the os limit of command line arguments. So you did exactly the right thing by using it in case of 20k maps.
Sounds useful indeed, feel free to add it to t.unregister. :)
[1] https://wiki.debian.org/CommonErrorMessages/ArgumentListTooLong