Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
X
xcache-nspawn-lrz
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
ETP Computing
xcache-nspawn-lrz
Compare revisions
84d126ddb2683ece26c85dc6663bf0ea08f97b75 to 0b244e4a8ddc8ec7df08aff7c96bedd8d0ef4e9a
Compare revisions
Changes are shown as if the
source
revision was being merged into the
target
revision.
Learn more about comparing revisions.
Source
etp-computing/xcache-nspawn-lrz
Select target project
No results found
0b244e4a8ddc8ec7df08aff7c96bedd8d0ef4e9a
Select Git revision
Swap
Target
etp-computing/xcache-nspawn-lrz
Select target project
etp-computing/xcache-nspawn-lrz
1 result
84d126ddb2683ece26c85dc6663bf0ea08f97b75
Select Git revision
Show changes
Only incoming changes from source
Include changes to target since source was created
Compare
Commits on Source (2)
adjust path in rm_cached_file.sh
· 12589194
Nikolai Hartmann
authored
2 years ago
12589194
change to path matching
· 0b244e4a
Nikolai Hartmann
authored
2 years ago
0b244e4a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
var/local/xcache/rm_cached_file.sh
+4
-10
4 additions, 10 deletions
var/local/xcache/rm_cached_file.sh
with
4 additions
and
10 deletions
var/local/xcache/rm_cached_file.sh
View file @
0b244e4a
#!/bin/bash
#
# remove cache entries for file pattern
...
...
@@ -8,18 +7,14 @@ if [ $# -lt 1 ]; then
exit
1
fi
fpat
=
$1
'*'
fpat
=
'*'
$1
'*'
# check cache
xrdpath1
=
/srv/xcache/xrd/namespace/atlas/
xrdpath
=
/data/xrd/namespace/atlas
if
[
-e
$xrdpath1
]
;
then
xrdpath
=
$xrdpath1
fi
xrdpath
=
/srv/xcache/namespace/atlas/
flist
=
`
find
$xrdpath
-xtype
f
-
name
"
$fpat
"
`
flist
=
`
find
$xrdpath
-xtype
f
-
path
"
$fpat
"
`
# check RAM disk
fl2
=
`
find /dev/shm/atlas
-xtype
f
-
name
"
$fpat
"
`
fl2
=
`
find /dev/shm/atlas
-xtype
f
-
path
"
$fpat
"
`
flist
=
"
$flist
$fl2
"
...
...
@@ -49,4 +44,3 @@ read ok
if
[
"
$ok
"
==
"y"
]
;
then
rm
$flist
$flink
fi
This diff is collapsed.
Click to expand it.