Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
O
osv
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
Service Desk
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
Verlässliche Systemsoftware
projects
osv
Commits
68798cd4
Commit
68798cd4
authored
11 years ago
by
Christoph Hellwig
Browse files
Options
Downloads
Patches
Plain Diff
populate the zfs test fs
parent
6b184e03
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
zfs.sh
+5
-1
5 additions, 1 deletion
zfs.sh
with
5 additions
and
1 deletion
zfs.sh
+
5
−
1
View file @
68798cd4
...
...
@@ -2,6 +2,7 @@
set
-x
ROOT
=
/zfs
IMG
=
`
pwd
`
/zfs.img
LOOP_DEV
=
/dev/loop7
DEV
=
/dev/vblk1
...
...
@@ -9,6 +10,7 @@ CACHE=`pwd`/zfs.cache
POOL
=
osv
FS
=
usr
mkdir
-p
${
ROOT
}
zpool destroy
${
POOL
}
rm
-f
${
IMG
}
...
...
@@ -17,9 +19,11 @@ truncate --size 10g ${IMG}
losetup
${
LOOP_DEV
}
${
IMG
}
ln
${
LOOP_DEV
}
${
DEV
}
zpool create
-f
${
POOL
}
-o
cachefile
=
${
CACHE
}
-o
altroot
=
/
${
DEV
}
zpool create
-f
${
POOL
}
-o
cachefile
=
${
CACHE
}
-o
altroot
=
${
ROOT
}
${
DEV
}
zfs create
${
POOL
}
/
${
FS
}
cp
-a
tests/
${
ROOT
}
/
${
FS
}
zpool
export
${
POOL
}
sleep
2
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment