From: Gionatan Danti <g.danti@assyoma.it>
To: "Darrick J. Wong" <darrick.wong@oracle.com>
Cc: linux-xfs@vger.kernel.org, g.danti@assyoma.it
Subject: Re: It is safe to execute a fallocate on a opened and in-use file?
Date: Sun, 11 Jun 2017 00:00:06 +0200 [thread overview]
Message-ID: <cb698069da3f4a5446785887ef096f6a@assyoma.it> (raw)
In-Reply-To: <20170610211822.GN4530@birch.djwong.org>
Il 10-06-2017 23:18 Darrick J. Wong ha scritto:
>
> Yes, writes and fallocates are serialized with each other to avoid
> corruption.
>
Great. Is this behavior valid for all filesystem (ie: it is implemented
on the VFS layer) or is it filesystem-specific?
>
> How do you get qemu to announce the disk size change the guest?
>
You can do that via virsh blockresize which, in turn, taps on qemu
monitor (which can even be used directly, without libvirt intervention).
From virsh man page:
"blockresize domain path size
Resize a block device of domain while the domain is running, path
specifies the absolute path of the block device; it corresponds to a
unique target name (<target dev='name'/>) or source file (<source
file='name'/>) for one of the disk devices attached to domain (see also
domblklist for listing these names)."
Thanks.
> --D
>
>> In general, how to consider concurrent metadata updates for the same
>> file/block? Should I expect file corruption, similar to concurrently
>> writing
>> data to the same file/block?
>>
>> Thanks.
>>
>> --
>> Danti Gionatan
>> Supporto Tecnico
>> Assyoma S.r.l. - www.assyoma.it
>> email: g.danti@assyoma.it - info@assyoma.it
>> GPG public key ID: FF5F32A8
>> --
>> To unsubscribe from this list: send the line "unsubscribe linux-xfs"
>> in
>> the body of a message to majordomo@vger.kernel.org
>> More majordomo info at http://vger.kernel.org/majordomo-info.html
--
Danti Gionatan
Supporto Tecnico
Assyoma S.r.l. - www.assyoma.it
email: g.danti@assyoma.it - info@assyoma.it
GPG public key ID: FF5F32A8
prev parent reply other threads:[~2017-06-10 22:00 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-06-10 18:09 It is safe to execute a fallocate on a opened and in-use file? Gionatan Danti
2017-06-10 21:18 ` Darrick J. Wong
2017-06-10 22:00 ` Gionatan Danti [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=cb698069da3f4a5446785887ef096f6a@assyoma.it \
--to=g.danti@assyoma.it \
--cc=darrick.wong@oracle.com \
--cc=linux-xfs@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.