diff options
| author | Kirk McKusick <mckusick@FreeBSD.org> | 2022-11-12 23:36:07 +0000 |
|---|---|---|
| committer | Kirk McKusick <mckusick@FreeBSD.org> | 2022-11-12 23:37:27 +0000 |
| commit | 5c7ba6bdf83fda82cce70f384e2ec8218f13002e (patch) | |
| tree | 942b2a2e00f972b7b003c0e99375b9aeb477f9dc /lib/libufs | |
| parent | 30a6c8a3a8a65074e531010f4adc8c1559f954ac (diff) | |
Diffstat (limited to 'lib/libufs')
| -rw-r--r-- | lib/libufs/cgroup.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/libufs/cgroup.c b/lib/libufs/cgroup.c index 90b28eadad2c..2058d16e9b6d 100644 --- a/lib/libufs/cgroup.c +++ b/lib/libufs/cgroup.c @@ -268,6 +268,10 @@ cgwrite1(struct uufsd *disk, int cg) static char errmsg[BUFSIZ]; if (cg == disk->d_cg.cg_cgx) { + if (ufs_disk_write(disk) == -1) { + ERROR(disk, "failed to open disk for writing"); + return (-1); + } if (cgput(disk->d_fd, &disk->d_fs, &disk->d_cg) == 0) return (0); ERROR(disk, NULL); |
