Debian Codegraph @

po/sv/man7/time_namespaces.7.po

raw
1 # Swedish translation of manpages
2 # This file is distributed under the same license as the manpages-l10n package.
3 # Copyright © of this file:
4 # Göran Uddeborg <[email protected]>, 2023, 2025.
5 msgid ""
6 msgstr ""
7 "Project-Id-Version: manpages-l10n 4.19.0\n"
8 "POT-Creation-Date: 2026-06-05 06:49+0200\n"
9 "PO-Revision-Date: 2025-11-06 21:26+0100\n"
10 "Last-Translator: Göran Uddeborg <[email protected]>\n"
11 "Language-Team: Swedish <[email protected]>\n"
12 "Language: sv\n"
13 "MIME-Version: 1.0\n"
14 "Content-Type: text/plain; charset=UTF-8\n"
15 "Content-Transfer-Encoding: 8bit\n"
16 "Plural-Forms: nplurals=2; plural=(n != 1);\n"
17
18 #. type: TH
19 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
20 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
21 #, no-wrap
22 msgid "time_namespaces"
23 msgstr "time_namespaces"
24
25 #. type: TH
26 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
27 #: opensuse-tumbleweed
28 #, no-wrap
29 msgid "2026-02-08"
30 msgstr "8 februari 2026"
31
32 #. type: TH
33 #: archlinux debian-unstable
34 #, no-wrap
35 msgid "Linux man-pages 6.18"
36 msgstr "Linux man-pages 6.18"
37
38 #. type: SH
39 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
40 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
41 #, no-wrap
42 msgid "NAME"
43 msgstr "NAMN"
44
45 #. type: Plain text
46 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
47 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
48 msgid "time_namespaces - overview of Linux time namespaces"
49 msgstr "time_namespaces — översikt över Linux tidnamnrymder"
50
51 #. type: SH
52 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
53 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
54 #, no-wrap
55 msgid "DESCRIPTION"
56 msgstr "BESKRIVNING"
57
58 #. type: Plain text
59 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
60 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
61 msgid "Time namespaces virtualize the values of two system clocks:"
62 msgstr "Tidnamnrymder virtualiserar värden för två systemklockor:"
63
64 #. type: IP
65 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
66 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
67 #, no-wrap
68 msgid "\\[bu]"
69 msgstr "\\[bu]"
70
71 #. type: Plain text
72 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
73 #: opensuse-tumbleweed
74 msgid ""
75 "B<CLOCK_MONOTONIC> (and likewise B<CLOCK_MONOTONIC_COARSE> and "
76 "B<CLOCK_MONOTONIC_RAW>), a nonsettable clock that represents monotonic time "
77 "since \\[em]as described by POSIX\\[em] \"some unspecified point in the "
78 "past\"."
79 msgstr ""
80 "B<CLOCK_MONOTONIC> (och likaledes B<CLOCK_MONOTONIC_COARSE> och "
81 "B<CLOCK_MONOTONIC_RAW>), en inte inställbar klocka som representerar monoton "
82 "tid sedan \\[em] såsom beskrivs av POSIX \\[em] ”någon ospecificerad punkt i "
83 "det förgångna”."
84
85 #. type: Plain text
86 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
87 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
88 msgid ""
89 "B<CLOCK_BOOTTIME> (and likewise B<CLOCK_BOOTTIME_ALARM>), a nonsettable "
90 "clock that is identical to B<CLOCK_MONOTONIC>, except that it also includes "
91 "any time that the system is suspended."
92 msgstr ""
93 "B<CLOCK_BOOTTIME> (och likaledes B<CLOCK_BOOTTIME_ALARM>), en inte "
94 "inställbar klocka som är identisk med B<CLOCK_MONOTONIC>, förutom att den "
95 "även inkluderar eventuell tid som systemet har varit vilande."
96
97 #. type: Plain text
98 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
99 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
100 msgid ""
101 "Thus, the processes in a time namespace share per-namespace values for these "
102 "clocks. This affects various APIs that measure against these clocks, "
103 "including: B<clock_gettime>(2), B<clock_nanosleep>(2), B<nanosleep>(2), "
104 "B<timer_settime>(2), B<timerfd_settime>(2), and I</proc/uptime>."
105 msgstr ""
106 "Alltså delar processerna i en tidnamnrymd värden per namnrymd för dessa "
107 "klockor. Detta påverkar diverse API:er som mäter mot dessa klockor, "
108 "inklusive: B<clock_gettime>(2), B<clock_nanosleep>(2), B<nanosleep>(2), "
109 "B<timer_settime>(2), B<timerfd_settime>(2) och I</proc/uptime>."
110
111 #. type: Plain text
112 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
113 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
114 msgid ""
115 "Currently, the only way to create a time namespace is by calling "
116 "B<unshare>(2) with the B<CLONE_NEWTIME> flag. This call creates a new time "
117 "namespace but does I<not> place the calling process in the new namespace. "
118 "Instead, the calling process's subsequently created children are placed in "
119 "the new namespace. This allows clock offsets (see below) for the new "
120 "namespace to be set before the first process is placed in the namespace. "
121 "The I</proc/>pidI</ns/time_for_children> symbolic link shows the time "
122 "namespace in which the children of a process will be created. (A process "
123 "can use a file descriptor opened on this symbolic link in a call to "
124 "B<setns>(2) in order to move into the namespace.)"
125 msgstr ""
126 "För närvarande är det enda sättet att skapa en tidnamnrymd genom att anropa "
127 "B<unshare>(2) med flaggan B<CLONE_NEWTIME>. Detta anrop skapar en ny "
128 "tidnamnrymd men placerar I<inte> den anropande processen i den nya "
129 "namnrymden. Istället placeras den anropande processens sedermera skapade "
130 "barn i den nya namnrymden. Detta gör att klockavstånd (se nedan) för den nya "
131 "namnrymden kan sättas före den första processen placeras i namnrymden. Den "
132 "symboliska länken I</proc/>pidI</ns/time_for_children> visar tidnamnrymden i "
133 "vilken barnen till en process kommer skapas. (En process kan använda en "
134 "filbeskrivare som öppnas mot denna symboliska länk i ett anrop av "
135 "B<setns>(2) för att flytta in i namnrymden.)"
136
137 #. type: SS
138 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
139 #: opensuse-tumbleweed
140 #, no-wrap
141 msgid "\\f[I]/proc/\\fBpid\\f[I]/timens_offsets\\fB"
142 msgstr "\\f[I]/proc/\\fBpid\\f[I]/timens_offsets\\fB"
143
144 #. type: Plain text
145 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
146 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
147 msgid ""
148 "Associated with each time namespace are offsets, expressed with respect to "
149 "the initial time namespace, that define the values of the monotonic and boot-"
150 "time clocks in that namespace. These offsets are exposed via the file I</"
151 "proc/>pidI</timens_offsets>. Within this file, the offsets are expressed as "
152 "lines consisting of three space-delimited fields:"
153 msgstr ""
154 "Associerat med varje tidnamnrymd finns avstånd, uttryckta med avseende på "
155 "den initiala tidnamnrymden, som definierar värdena för den monotona klockan "
156 "och starttidsklockan i den namnrymden. Dessa avstånd visas via filen I</proc/"
157 ">pidI</timens_offsets>. Inom denna fil uttrycks avstånden som rader som "
158 "består av tre blankavgränsade fält:"
159
160 #. type: Plain text
161 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
162 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
163 #, no-wrap
164 msgid "E<lt>clock-idE<gt> E<lt>offset-secsE<gt> E<lt>offset-nanosecsE<gt>\n"
165 msgstr "E<lt>klock-idE<gt> E<lt>avstånd-sekE<gt> E<lt>avstånd-nanosekE<gt>\n"
166
167 #. type: Plain text
168 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
169 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
170 msgid ""
171 "The I<clock-id> is a string that identifies the clock whose offsets are "
172 "being shown. This field is either I<monotonic>, for B<CLOCK_MONOTONIC>, or "
173 "I<boottime>, for B<CLOCK_BOOTTIME>. The remaining fields express the offset "
174 "(seconds plus nanoseconds) for the clock in this time namespace. These "
175 "offsets are expressed relative to the clock values in the initial time "
176 "namespace. The I<offset-secs> value can be negative, subject to "
177 "restrictions noted below; I<offset-nanosecs> is an unsigned value."
178 msgstr ""
179 "I<Klock-id> är en sträng som identifierar klockan vars avstånd visas. Detta "
180 "fält är antingen I<monotonic>, för B<CLOCK_MONOTONIC>, eller I<boottime>, "
181 "för B<CLOCK_BOOTTIME>. De återstående fälten uttrycker avståndet (sekunder "
182 "plus nanosekunder) för klockan i denna tidnamnrymd. Dessa avstånd uttrycks "
183 "relativt klockvärdena i den initiala tidnamnrymden. Värdet I<avstånd-sek> "
184 "kan vara negativt, föremål för begränsningarna som anges nedan; I<avstånd-"
185 "nanosek> är ett teckenlöst värde."
186
187 #. type: Plain text
188 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
189 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
190 msgid ""
191 "In the initial time namespace, the contents of the I<timens_offsets> file "
192 "are as follows:"
193 msgstr ""
194 "I den initiala tidnamnrymden är innehållet i filen I<timens_offsets> som "
195 "följer:"
196
197 #. type: Plain text
198 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
199 #: opensuse-tumbleweed
200 #, no-wrap
201 msgid ""
202 "$B< cat /proc/self/timens_offsets>\n"
203 "monotonic 0 0\n"
204 "boottime 0 0\n"
205 msgstr ""
206 "$B< cat /proc/self/timens_offsets>\n"
207 "monotonic 0 0\n"
208 "boottime 0 0\n"
209
210 #. type: Plain text
211 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
212 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
213 msgid ""
214 "In a new time namespace that has had no member processes, the clock offsets "
215 "can be modified by writing newline-terminated records of the same form to "
216 "the I<timens_offsets> file. The file can be written to multiple times, but "
217 "after the first process has been created in or has entered the namespace, "
218 "B<write>(2)s on this file fail with the error B<EACCES>. In order to write "
219 "to the I<timens_offsets> file, a process must have the B<CAP_SYS_TIME> "
220 "capability in the user namespace that owns the time namespace."
221 msgstr ""
222 "I en ny tidnamnrymd som inte har haft några medlemsprocesser kan "
223 "klockavstånden ändras genom att skriva nyradsavslutade poster med samma "
224 "format till filen I<timens_offsets>. Det går att skriva till filen flera "
225 "gånger, men efter att den första processen har skapats i eller gått in i "
226 "namnrymden kommer B<write>(2) till denna fil att misslyckas med felet "
227 "B<EACCES>. För att skriva till filen I<timens_offsets> måste en process ha "
228 "förmågan B<CAP_SYS_TIME> i användarnamnrymden som äger tidnamnrymden."
229
230 #. type: Plain text
231 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
232 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
233 msgid ""
234 "Writes to the I<timens_offsets> file can fail with the following errors:"
235 msgstr ""
236 "Skrivningar till filen I<timens_offsets> kan misslyckas med följande fel:"
237
238 #. type: TP
239 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
240 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
241 #, no-wrap
242 msgid "B<EINVAL>"
243 msgstr "B<EINVAL>"
244
245 #. type: Plain text
246 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
247 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
248 msgid "An I<offset-nanosecs> value is greater than 999,999,999."
249 msgstr "Ett värde på I<avstånd-nanosek> större än 999 999 999."
250
251 #. type: Plain text
252 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
253 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
254 msgid "A I<clock-id> value is not valid."
255 msgstr "Ett värde på I<klock-id> som inte är giltigt."
256
257 #. type: TP
258 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
259 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
260 #, no-wrap
261 msgid "B<EPERM>"
262 msgstr "B<EPERM>"
263
264 #. type: Plain text
265 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
266 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
267 msgid "The caller does not have the B<CAP_SYS_TIME> capability."
268 msgstr "Anroparen har inte förmågan B<CAP_SYS_TIME>."
269
270 #. type: TP
271 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
272 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
273 #, no-wrap
274 msgid "B<ERANGE>"
275 msgstr "B<ERANGE>"
276
277 #. type: Plain text
278 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
279 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
280 msgid "An I<offset-secs> value is out of range. In particular;"
281 msgstr "Ett värde på I<avstånd-sek> är utanför intervallet. Speciellt;"
282
283 #. type: Plain text
284 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
285 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
286 msgid ""
287 "I<offset-secs> can't be set to a value which would make the current time on "
288 "the corresponding clock inside the namespace a negative value; and"
289 msgstr ""
290 "kan I<avstånd-sek> inte sättas till ett värde vilket skulle ge den aktuella "
291 "tiden på motsvarande klocka inuti namnrymden ett negativt värde; vidare"
292
293 #. type: Plain text
294 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
295 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
296 msgid ""
297 "I<offset-secs> can't be set to a value such that the time on the "
298 "corresponding clock inside the namespace would exceed half of the value of "
299 "the kernel constant B<KTIME_SEC_MAX> (this limits the clock value to a "
300 "maximum of approximately 146 years)."
301 msgstr ""
302 "kan I<avstånd-sek> inte sättas till ett värde så att tiden på motsvarande "
303 "klocka inuti namnrymden skulle överskrida halva värdet på kärnkonstanten "
304 "B<KTIME_SEC_MAX> (detta begränsar klockvärdet till ett maximum av ungefär "
305 "146 år)."
306
307 #. type: Plain text
308 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
309 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
310 msgid ""
311 "In a new time namespace created by B<unshare>(2), the contents of the "
312 "I<timens_offsets> file are inherited from the time namespace of the creating "
313 "process."
314 msgstr ""
315 "I en ny tidnamnrymd skapad med B<unshare>(2) ärvs innehållet i filen "
316 "I<timens_offsets> från tidnamnrymden hos den skapande processen."
317
318 #. type: SH
319 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
320 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
321 #, no-wrap
322 msgid "NOTES"
323 msgstr "NOTERINGAR"
324
325 #. type: Plain text
326 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
327 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
328 msgid ""
329 "Use of time namespaces requires a kernel that is configured with the "
330 "B<CONFIG_TIME_NS> option."
331 msgstr ""
332 "Användning av cgroup-namnrymder kräver en kärna som är konfigurerad med "
333 "alternativet B<CONFIG_TIME_NS>."
334
335 #. type: Plain text
336 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
337 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
338 msgid ""
339 "Note that time namespaces do not virtualize the B<CLOCK_REALTIME> clock. "
340 "Virtualization of this clock was avoided for reasons of complexity and "
341 "overhead within the kernel."
342 msgstr ""
343 "Observera att tidnamnrymder inte virtualiserar klockan B<CLOCK_REALTIME>. "
344 "Virtualisering av denna klocka undveks på grund av komplexitet och overhead "
345 "inom kärnan."
346
347 #. type: Plain text
348 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
349 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
350 msgid ""
351 "For compatibility with the initial implementation, when writing a I<clock-"
352 "id> to the I</proc/>pidI</timens_offsets> file, the numerical values of the "
353 "IDs can be written instead of the symbolic names show above; i.e., 1 instead "
354 "of I<monotonic>, and 7 instead of I<boottime>. For readability, the use of "
355 "the symbolic names over the numbers is preferred."
356 msgstr ""
357 "För kompatibilitet med den ursprungliga implementationen kan, när man "
358 "skriver ett I<klock-id> till filen I</proc/>pidI</timens_offsets>, de "
359 "numeriska värdena av ID:n skrivas istället för de symboliska namnen som "
360 "visas ovan; d.v.s., 1 istället för I<monotonic>, och 7 istället för "
361 "I<boottime>. För bästa läsbarhet rekommenderas det att man använder "
362 "symboliska namn hellre än nummer."
363
364 #. type: Plain text
365 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
366 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
367 msgid ""
368 "The motivation for adding time namespaces was to allow the monotonic and "
369 "boot-time clocks to maintain consistent values during container migration "
370 "and checkpoint/restore."
371 msgstr ""
372 "Motivationen för att lägga till tidnamnrymder var för att göra det möjligt "
373 "att låta den monotona klockan och starttidsklockan behålla konsistenta "
374 "värden under migrering av behållare och checkpunkt/återställning."
375
376 #. type: SH
377 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
378 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
379 #, no-wrap
380 msgid "EXAMPLES"
381 msgstr "EXEMPEL"
382
383 #. type: Plain text
384 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
385 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
386 msgid ""
387 "The following shell session demonstrates the operation of time namespaces. "
388 "We begin by displaying the inode number of the time namespace of a shell in "
389 "the initial time namespace:"
390 msgstr ""
391 "Följande skalsession demonstrerar funktionen hos tidnamnrymder. Vi börjar "
392 "med att visa inodsnumret för tidnamnrymden för ett skal i den initiala "
393 "tidnamnrymden:"
394
395 #. type: Plain text
396 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
397 #: opensuse-tumbleweed
398 #, no-wrap
399 msgid ""
400 "$B< readlink /proc/$$/ns/time>\n"
401 "time:[4026531834]\n"
402 msgstr ""
403 "$B< readlink /proc/$$/ns/time>\n"
404 "time:[4026531834]\n"
405
406 #. type: Plain text
407 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
408 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
409 msgid ""
410 "Continuing in the initial time namespace, we display the system uptime using "
411 "B<uptime>(1) and use the I<clock_times> example program shown in "
412 "B<clock_getres>(2) to display the values of various clocks:"
413 msgstr ""
414 "Fortfarande i den initiala tidnamnrymden visar vi systemets uppetid med "
415 "B<uptime>(1) och använder exempelprogrammet I<clock_times> som visas i "
416 "B<clock_getres>(2) för att visa värdet på olika klockor:"
417
418 #. type: Plain text
419 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
420 #: opensuse-tumbleweed
421 #, no-wrap
422 msgid ""
423 "$B< uptime --pretty>\n"
424 "up 21 hours, 17 minutes\n"
425 "$B< ./clock_times>\n"
426 "CLOCK_REALTIME : 1585989401.971 (18356 days + 8h 36m 41s)\n"
427 "CLOCK_TAI : 1585989438.972 (18356 days + 8h 37m 18s)\n"
428 "CLOCK_MONOTONIC: 56338.247 (15h 38m 58s)\n"
429 "CLOCK_BOOTTIME : 76633.544 (21h 17m 13s)\n"
430 msgstr ""
431 "$B< uptime --pretty>\n"
432 "up 21 hours, 17 minutes\n"
433 "$B< ./clock_times>\n"
434 "CLOCK_REALTIME : 1585989401.971 (18356 days + 8h 36m 41s)\n"
435 "CLOCK_TAI : 1585989438.972 (18356 days + 8h 37m 18s)\n"
436 "CLOCK_MONOTONIC: 56338.247 (15h 38m 58s)\n"
437 "CLOCK_BOOTTIME : 76633.544 (21h 17m 13s)\n"
438
439 #. type: Plain text
440 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
441 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
442 msgid ""
443 "We then use B<unshare>(1) to create a time namespace and execute a "
444 "B<bash>(1) shell. From the new shell, we use the built-in B<echo> command "
445 "to write records to the I<timens_offsets> file adjusting the offset for the "
446 "B<CLOCK_MONOTONIC> clock forward 2 days and the offset for the "
447 "B<CLOCK_BOOTTIME> clock forward 7 days:"
448 msgstr ""
449 "Vi använder sedan B<unshare>(1) för att skapa en tidnamnrymd och köra ett "
450 "skal B<bash>(1). Från det nya skalet använder vi det inbyggda kommandot "
451 "B<echo> för att skriva poster till filen I<timens_offsets> och justera "
452 "avståndet för klockan B<CLOCK_MONOTONIC> framåt 2 dagar och avståndet för "
453 "klockan B<CLOCK_BOOTTIME> framåt 7 dagar:"
454
455 #. type: Plain text
456 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
457 #: opensuse-tumbleweed
458 #, no-wrap
459 msgid ""
460 "$B< PS1=>ns2#B< sudo unshare -T -- bash --norc>\n"
461 "ns2#B< echo >monotonicB<$((2*24*60*60))>0\"B<E<gt>>/proc/$$/timens_offsets\"\n"
462 "ns2#B< echo >boottimeB<$((7*24*60*60))>0\"B<E<gt>>/proc/$$/timens_offsets\"\n"
463 msgstr ""
464 "$B< PS1=>ns2#B< sudo unshare -T -- bash --norc>\n"
465 "ns2#B< echo >monotonicB<$((2*24*60*60))>0\"B<E<gt>>/proc/$$/timens_offsets\"\n"
466 "ns2#B< echo >boottimeB<$((7*24*60*60))>0\"B<E<gt>>/proc/$$/timens_offsets\"\n"
467
468 #. type: Plain text
469 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
470 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
471 msgid ""
472 "Above, we started the B<bash>(1) shell with the B<--norc> option so that no "
473 "start-up scripts were executed. This ensures that no child processes are "
474 "created from the shell before we have a chance to update the "
475 "I<timens_offsets> file."
476 msgstr ""
477 "Ovan startar vi skalet B<bash>(1) med flaggan B<--norc> så att inga "
478 "uppstartsskript körs. Detta säkerställer att inga barnprocesser skapas från "
479 "skalet före vi har haft en chans att uppdatera filen I<timens_offsets>."
480
481 #. type: Plain text
482 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
483 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
484 msgid ""
485 "We then use B<cat>(1) to display the contents of the I<timens_offsets> "
486 "file. The execution of B<cat>(1) creates the first process in the new time "
487 "namespace, after which further attempts to update the I<timens_offsets> file "
488 "produce an error."
489 msgstr ""
490 "Vi använder sedan B<cat>(1) för att visa innehållet i filen "
491 "I<timens_offsets>. Att B<cat>(1) körs skapar den första processen i den nya "
492 "tidnamnrymden, varefter vidare försök att uppdatera filen I<timens_offsets> "
493 "ger ett fel."
494
495 #. type: Plain text
496 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
497 #: opensuse-tumbleweed
498 #, no-wrap
499 msgid ""
500 "ns2#B< cat /proc/$$/timens_offsets>\n"
501 "monotonic 172800 0\n"
502 "boottime 604800 0\n"
503 "ns2#B< echo \\[dq]boottime $((9*24*60*60)) 0\\[dq] E<gt> /proc/$$/timens_offsets>\n"
504 "bash: echo: write error: Permission denied\n"
505 msgstr ""
506 "ns2#B< cat /proc/$$/timens_offsets>\n"
507 "monotonic 172800 0\n"
508 "boottime 604800 0\n"
509 "ns2#B< echo \\[dq]boottime $((9*24*60*60)) 0\\[dq] E<gt> /proc/$$/timens_offsets>\n"
510 "bash: echo: skrivfel: Åtkomst nekas\n"
511
512 #. type: Plain text
513 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
514 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
515 msgid ""
516 "Continuing in the new namespace, we execute B<uptime>(1) and the "
517 "I<clock_times> example program:"
518 msgstr ""
519 "Fortfarande i den nya namnrymden kör vi B<uptime>(1) och exempelprogrammet "
520 "I<clock_times>:"
521
522 #. type: Plain text
523 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
524 #: opensuse-tumbleweed
525 #, no-wrap
526 msgid ""
527 "ns2#B< uptime --pretty>\n"
528 "up 1 week, 21 hours, 18 minutes\n"
529 "ns2#B< ./clock_times>\n"
530 "CLOCK_REALTIME : 1585989457.056 (18356 days + 8h 37m 37s)\n"
531 "CLOCK_TAI : 1585989494.057 (18356 days + 8h 38m 14s)\n"
532 "CLOCK_MONOTONIC: 229193.332 (2 days + 15h 39m 53s)\n"
533 "CLOCK_BOOTTIME : 681488.629 (7 days + 21h 18m 8s)\n"
534 msgstr ""
535 "ns2#B< uptime --pretty>\n"
536 "up 1 week, 21 hours, 18 minutes\n"
537 "ns2#B< ./clock_times>\n"
538 "CLOCK_REALTIME : 1585989457.056 (18356 days + 8h 37m 37s)\n"
539 "CLOCK_TAI : 1585989494.057 (18356 days + 8h 38m 14s)\n"
540 "CLOCK_MONOTONIC: 229193.332 (2 days + 15h 39m 53s)\n"
541 "CLOCK_BOOTTIME : 681488.629 (7 days + 21h 18m 8s)\n"
542
543 #. type: Plain text
544 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
545 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
546 msgid ""
547 "From the above output, we can see that the monotonic and boot-time clocks "
548 "have different values in the new time namespace."
549 msgstr ""
550 "Från ovanstående utskrift kan vi se att den monotona klockan och "
551 "starttidsklockan har andra värden i den nya tidnamnrymden."
552
553 #. type: Plain text
554 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
555 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
556 msgid ""
557 "Examining the I</proc/>pidI</ns/time> and I</proc/>pidI</ns/"
558 "time_for_children> symbolic links, we see that the shell is a member of the "
559 "initial time namespace, but its children are created in the new namespace."
560 msgstr ""
561 "Genom att undersöka de symboliska länkarna I</proc/>pidI</ns/time> och I</"
562 "proc/>pidI</ns/time_for_children> ser vi att skalet är medlem av den "
563 "initiala tidnamnrymden, men dess barn skapas i den nya namnrymden."
564
565 #. type: Plain text
566 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
567 #: opensuse-tumbleweed
568 #, no-wrap
569 msgid ""
570 "ns2#B< readlink /proc/$$/ns/time>\n"
571 "time:[4026531834]\n"
572 "ns2#B< readlink /proc/$$/ns/time_for_children>\n"
573 "time:[4026532900]\n"
574 "ns2#B< readlink /proc/self/ns/time> # Creates a child process\n"
575 "time:[4026532900]\n"
576 msgstr ""
577 "ns2#B< readlink /proc/$$/ns/time>\n"
578 "time:[4026531834]\n"
579 "ns2#B< readlink /proc/$$/ns/time_for_children>\n"
580 "time:[4026532900]\n"
581 "ns2#B< readlink /proc/self/ns/time> # Skapar en barnprocess\n"
582 "time:[4026532900]\n"
583
584 #. type: Plain text
585 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
586 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
587 msgid ""
588 "Returning to the shell in the initial time namespace, we see that the "
589 "monotonic and boot-time clocks are unaffected by the I<timens_offsets> "
590 "changes that were made in the other time namespace:"
591 msgstr ""
592 "Efter att ha återvänt till skalet i den initiala namnrymden ser vi att den "
593 "monotona klockan och starttidsklockan är opåverkade av ändringarna av "
594 "I<timens_offsets> som gjordes i den andra tidnamnrymden:"
595
596 #. type: Plain text
597 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
598 #: opensuse-tumbleweed
599 #, no-wrap
600 msgid ""
601 "$B< uptime --pretty>\n"
602 "up 21 hours, 19 minutes\n"
603 "$B< ./clock_times>\n"
604 "CLOCK_REALTIME : 1585989401.971 (18356 days + 8h 38m 51s)\n"
605 "CLOCK_TAI : 1585989438.972 (18356 days + 8h 39m 28s)\n"
606 "CLOCK_MONOTONIC: 56338.247 (15h 41m 8s)\n"
607 "CLOCK_BOOTTIME : 76633.544 (21h 19m 23s)\n"
608 msgstr ""
609 "$B< uptime --pretty>\n"
610 "up 21 hours, 19 minutes\n"
611 "$B< ./clock_times>\n"
612 "CLOCK_REALTIME : 1585989401.971 (18356 days + 8h 38m 51s)\n"
613 "CLOCK_TAI : 1585989438.972 (18356 days + 8h 39m 28s)\n"
614 "CLOCK_MONOTONIC: 56338.247 (15h 41m 8s)\n"
615 "CLOCK_BOOTTIME : 76633.544 (21h 19m 23s)\n"
616
617 #. type: SH
618 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
619 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
620 #, no-wrap
621 msgid "SEE ALSO"
622 msgstr "SE ÄVEN"
623
624 #. clone3() support for time namespaces is a work in progress
625 #. .BR clone3 (2),
626 #. type: Plain text
627 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
628 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
629 msgid ""
630 "B<nsenter>(1), B<unshare>(1), B<clock_settime>(2), B<setns>(2), "
631 "B<unshare>(2), B<namespaces>(7), B<time>(7)"
632 msgstr ""
633 "B<nsenter>(1), B<unshare>(1), B<clock_settime>(2), B<setns>(2), "
634 "B<unshare>(2), B<namespaces>(7), B<time>(7)"
635
636 #. type: TH
637 #: debian-trixie fedora-44 fedora-rawhide
638 #, no-wrap
639 msgid "2024-05-02"
640 msgstr "2 maj 2024"
641
642 #. type: TH
643 #: debian-trixie
644 #, no-wrap
645 msgid "Linux man-pages 6.9.1"
646 msgstr "Linux man-pages 6.9.1"
647
648 #. type: Plain text
649 #: debian-trixie fedora-44 fedora-rawhide
650 msgid ""
651 "B<CLOCK_MONOTONIC> (and likewise B<CLOCK_MONOTONIC_COARSE> and "
652 "B<CLOCK_MONOTONIC_RAW>), a nonsettable clock that represents monotonic time "
653 "since\\[em]as described by POSIX\\[em]\"some unspecified point in the past\"."
654 msgstr ""
655 "B<CLOCK_MONOTONIC> (och likaledes B<CLOCK_MONOTONIC_COARSE> och "
656 "B<CLOCK_MONOTONIC_RAW>), en inte inställbar klocka som representerar monoton "
657 "tid sedan \\[em] såsom beskrivs av POSIX \\[em] ”någon ospecificerad punkt i "
658 "det förgångna”."
659
660 #. type: SS
661 #: debian-trixie fedora-44 fedora-rawhide
662 #, no-wrap
663 msgid "I</proc/>pidI</timens_offsets>"
664 msgstr "I</proc/>pidI</timens_offsets>"
665
666 #. type: Plain text
667 #: debian-trixie fedora-44 fedora-rawhide
668 #, no-wrap
669 msgid ""
670 "$ B<cat /proc/self/timens_offsets>\n"
671 "monotonic 0 0\n"
672 "boottime 0 0\n"
673 msgstr ""
674 "$ B<cat /proc/self/timens_offsets>\n"
675 "monotonic 0 0\n"
676 "boottime 0 0\n"
677
678 #. type: Plain text
679 #: debian-trixie fedora-44 fedora-rawhide
680 #, no-wrap
681 msgid ""
682 "$ B<readlink /proc/$$/ns/time>\n"
683 "time:[4026531834]\n"
684 msgstr ""
685 "$ B<readlink /proc/$$/ns/time>\n"
686 "time:[4026531834]\n"
687
688 #. type: Plain text
689 #: debian-trixie fedora-44 fedora-rawhide
690 #, no-wrap
691 msgid ""
692 "$ B<uptime --pretty>\n"
693 "up 21 hours, 17 minutes\n"
694 "$ B<./clock_times>\n"
695 "CLOCK_REALTIME : 1585989401.971 (18356 days + 8h 36m 41s)\n"
696 "CLOCK_TAI : 1585989438.972 (18356 days + 8h 37m 18s)\n"
697 "CLOCK_MONOTONIC: 56338.247 (15h 38m 58s)\n"
698 "CLOCK_BOOTTIME : 76633.544 (21h 17m 13s)\n"
699 msgstr ""
700 "$ B<uptime --pretty>\n"
701 "up 21 hours, 17 minutes\n"
702 "$ B<./clock_times>\n"
703 "CLOCK_REALTIME : 1585989401.971 (18356 days + 8h 36m 41s)\n"
704 "CLOCK_TAI : 1585989438.972 (18356 days + 8h 37m 18s)\n"
705 "CLOCK_MONOTONIC: 56338.247 (15h 38m 58s)\n"
706 "CLOCK_BOOTTIME : 76633.544 (21h 17m 13s)\n"
707
708 #. type: Plain text
709 #: debian-trixie fedora-44 fedora-rawhide
710 #, no-wrap
711 msgid ""
712 "$ B<PS1=\"ns2# \" sudo unshare -T -- bash --norc>\n"
713 "ns2# B<echo \"monotonic $((2*24*60*60)) 0\" E<gt> /proc/$$/timens_offsets>\n"
714 "ns2# B<echo \"boottime $((7*24*60*60)) 0\" E<gt> /proc/$$/timens_offsets>\n"
715 msgstr ""
716 "$ B<PS1=\"ns2# \" sudo unshare -T -- bash --norc>\n"
717 "ns2# B<echo \"monotonic $((2*24*60*60)) 0\" E<gt> /proc/$$/timens_offsets>\n"
718 "ns2# B<echo \"boottime $((7*24*60*60)) 0\" E<gt> /proc/$$/timens_offsets>\n"
719
720 #. type: Plain text
721 #: debian-trixie fedora-44 fedora-rawhide
722 #, no-wrap
723 msgid ""
724 "ns2# B<cat /proc/$$/timens_offsets>\n"
725 "monotonic 172800 0\n"
726 "boottime 604800 0\n"
727 "ns2# B<echo \"boottime $((9*24*60*60)) 0\" E<gt> /proc/$$/timens_offsets>\n"
728 "bash: echo: write error: Permission denied\n"
729 msgstr ""
730 "ns2# B<cat /proc/$$/timens_offsets>\n"
731 "monotonic 172800 0\n"
732 "boottime 604800 0\n"
733 "ns2# B<echo \"boottime $((9*24*60*60)) 0\" E<gt> /proc/$$/timens_offsets>\n"
734 "bash: echo: skrivfel: Åtkomst nekas\n"
735
736 #. type: Plain text
737 #: debian-trixie fedora-44 fedora-rawhide
738 #, no-wrap
739 msgid ""
740 "ns2# B<uptime --pretty>\n"
741 "up 1 week, 21 hours, 18 minutes\n"
742 "ns2# B<./clock_times>\n"
743 "CLOCK_REALTIME : 1585989457.056 (18356 days + 8h 37m 37s)\n"
744 "CLOCK_TAI : 1585989494.057 (18356 days + 8h 38m 14s)\n"
745 "CLOCK_MONOTONIC: 229193.332 (2 days + 15h 39m 53s)\n"
746 "CLOCK_BOOTTIME : 681488.629 (7 days + 21h 18m 8s)\n"
747 msgstr ""
748 "ns2# B<uptime --pretty>\n"
749 "up 1 week, 21 hours, 18 minutes\n"
750 "ns2# B<./clock_times>\n"
751 "CLOCK_REALTIME : 1585989457.056 (18356 days + 8h 37m 37s)\n"
752 "CLOCK_TAI : 1585989494.057 (18356 days + 8h 38m 14s)\n"
753 "CLOCK_MONOTONIC: 229193.332 (2 days + 15h 39m 53s)\n"
754 "CLOCK_BOOTTIME : 681488.629 (7 days + 21h 18m 8s)\n"
755
756 #. type: Plain text
757 #: debian-trixie fedora-44 fedora-rawhide
758 #, no-wrap
759 msgid ""
760 "ns2# B<readlink /proc/$$/ns/time>\n"
761 "time:[4026531834]\n"
762 "ns2# B<readlink /proc/$$/ns/time_for_children>\n"
763 "time:[4026532900]\n"
764 "ns2# B<readlink /proc/self/ns/time> # Creates a child process\n"
765 "time:[4026532900]\n"
766 msgstr ""
767 "ns2# B<readlink /proc/$$/ns/time>\n"
768 "time:[4026531834]\n"
769 "ns2# B<readlink /proc/$$/ns/time_for_children>\n"
770 "time:[4026532900]\n"
771 "ns2# B<readlink /proc/self/ns/time> # Skapar en barnprocess\n"
772 "time:[4026532900]\n"
773
774 #. type: Plain text
775 #: debian-trixie fedora-44 fedora-rawhide
776 #, no-wrap
777 msgid ""
778 "$ B<uptime --pretty>\n"
779 "up 21 hours, 19 minutes\n"
780 "$ B<./clock_times>\n"
781 "CLOCK_REALTIME : 1585989401.971 (18356 days + 8h 38m 51s)\n"
782 "CLOCK_TAI : 1585989438.972 (18356 days + 8h 39m 28s)\n"
783 "CLOCK_MONOTONIC: 56338.247 (15h 41m 8s)\n"
784 "CLOCK_BOOTTIME : 76633.544 (21h 19m 23s)\n"
785 msgstr ""
786 "$ B<uptime --pretty>\n"
787 "up 21 hours, 19 minutes\n"
788 "$ B<./clock_times>\n"
789 "CLOCK_REALTIME : 1585989401.971 (18356 days + 8h 38m 51s)\n"
790 "CLOCK_TAI : 1585989438.972 (18356 days + 8h 39m 28s)\n"
791 "CLOCK_MONOTONIC: 56338.247 (15h 41m 8s)\n"
792 "CLOCK_BOOTTIME : 76633.544 (21h 19m 23s)\n"
793
794 #. type: TH
795 #: fedora-44 fedora-rawhide
796 #, no-wrap
797 msgid "Linux man-pages 6.13"
798 msgstr "Linux man-pages 6.13"
799
800 #. type: TH
801 #: mageia-cauldron
802 #, no-wrap
803 msgid "Linux man-pages 6.17"
804 msgstr "Linux man-pages 6.17"
805
806 #. type: TH
807 #: opensuse-leap-16-1 opensuse-tumbleweed
808 #, no-wrap
809 msgid "Linux man-pages (unreleased)"
810 msgstr "Linux man-pages (outgivna)"