GNU bug report logs - #45887
buffer cache flushed after excute 'parted -s print' command

Previous Next

Package: parted;

Reported by: Hyun Ha <hfamily15 <at> gmail.com>

Date: Fri, 15 Jan 2021 08:30:02 UTC

Severity: normal

Done: "Brian C. Lane" <bcl <at> redhat.com>

Bug is archived. No further changes may be made.

Full log


Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Hyun Ha <hfamily15 <at> gmail.com>
To: bug-parted <at> gnu.org
Subject: buffer cache flushed after excute 'parted -s print' command
Date: Fri, 15 Jan 2021 12:32:42 +0900
[Message part 1 (text/plain, inline)]
Hi,
I have a strange issue with parted.
After execute parted command, buffer cache flushed and I don't know why.
I have nvme device to set bcache and HDD device for backing block device of
bcache and writeback mode.

System informations:
 - OS: CentOS Linux release 7.4.1708 (Core)
 - Kernel version: 4.18.16-1.el7.elrepo.x86_64
 - parted version: parted (GNU parted) 3.1

Reproduce:
 - create nvme partition
 - make bcache
 - execute parted command

Test:
$ free ; parted /dev/nvme0n1p10 -s print;free
              total        used        free      shared  buff/cache
available
Mem:      131463788    27276308    74617372        3064    29570108
102167828
Swap:       4194300           0     4194300
Error: /dev/nvme0n1p10: unrecognised disk label
Model: Unknown (unknown)
Disk /dev/nvme0n1p10: 50.0GB
Sector size (logical/physical): 512B/512B
Partition Table: unknown
Disk Flags:
              total        used        free      shared  buff/cache
available
Mem:      131463788    27276784    75484216        3064    28702788
102167836
Swap:       4194300           0     4194300

$ free ; parted /dev/nvme0n1p11 -s print;free
              total        used        free      shared  buff/cache
available
Mem:      131463788    27324028    75436544        3128    28703216
102119460
Swap:       4194300           0     4194300
Error: /dev/nvme0n1p11: unrecognised disk label
Model: Unknown (unknown)
Disk /dev/nvme0n1p11: 50.0GB
Sector size (logical/physical): 512B/512B
Partition Table: unknown
Disk Flags:
              total        used        free      shared  buff/cache
available
Mem:      131463788    27321968    76610612        3128    27531208
102121764
Swap:       4194300           0     4194300

gdisk and fdisk does not flush buffer cache with execute command.
Is this a bug or normal?
thank you in advance.
[Message part 2 (text/html, inline)]

This bug report was last modified 4 years and 181 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.