Skip to content

[OXT-1640] Remove legacy falloc script#115

Merged
jean-edouard merged 1 commit intoOpenXT:masterfrom
tijko:falloc-legacy
Aug 14, 2019
Merged

[OXT-1640] Remove legacy falloc script#115
jean-edouard merged 1 commit intoOpenXT:masterfrom
tijko:falloc-legacy

Conversation

@tijko
Copy link
Copy Markdown
Contributor

@tijko tijko commented Aug 8, 2019

This commit replaces the custom OXT falloc command script
with the standard fallocate call that gets pulled in by util-linux.

Signed-off-by: Tim Konick konickt@ainfosec.com

Copy link
Copy Markdown
Contributor

@jandryuk jandryuk left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

For completeness you should state that this depends on OpenXT/xenclient-oe#1228 to ensure they go in together.

Comment thread part2/stages/Functions/install-main Outdated

# Reserve 4GB on storage
do_cmd falloc ${DOM0_MOUNT}/storage/xc-reserved 4096 >&2 || return 1
do_cmd fallocate ${DOM0_MOUNT}/storage/xc-reserved -l 4096 >&2 || return 1
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

falloc size argument was in MB.
fallocate is in byte.

FALLOCATE(1)
[...]
       -l, --length length
              Specifies the length of the range, in bytes.
[...]

This commit replaces the custom OXT `falloc` command script
with the standard `fallocate` call that gets pulled in by `util-linux`.

[OXT-1640]

Signed-off-by: Tim Konick <konickt@ainfosec.com>
@jean-edouard
Copy link
Copy Markdown
Member

Copy link
Copy Markdown
Contributor

@eric-ch eric-ch left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM.

@jean-edouard
Copy link
Copy Markdown
Member

Merging tomorrow.

@jean-edouard jean-edouard merged commit 6668722 into OpenXT:master Aug 14, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants