search for: f_files

Displaying 20 results from an estimated 41 matches for "f_files".

2017 Oct 03
0
[PATCH v2 1/2] daemon: Reimplement statvfs API in OCaml.
...lib_realpath (value pathv) } value -guestfs_int_mllib_statvfs_free_space (value pathv) +guestfs_int_mllib_statvfs_statvfs (value pathv) { CAMLparam1 (pathv); - CAMLlocal1 (rv); + int64_t f_bsize; + int64_t f_frsize; + int64_t f_blocks; + int64_t f_bfree; + int64_t f_bavail; + int64_t f_files; + int64_t f_ffree; + int64_t f_favail; + int64_t f_fsid; + int64_t f_flag; + int64_t f_namemax; + CAMLlocal2 (rv, v); + +#ifdef HAVE_STATVFS struct statvfs buf; - int64_t free_space; - if (statvfs (String_val (pathv), &buf) == -1) { - perror ("statvfs"); - caml_fai...
2018 Jan 04
2
virtdf outputs on host differs from df in guest
...   508588  133328    375260  27% /boot tmpfs                      188376       0    188376   0% /run/user/0 using scripts: python -c 'import os; s = os.statvfs ("/"); print s' posix.statvfs_result(f_bsize=4096, f_frsize=4096, f_blocks=5886149, f_bfree=4802342, f_bavail=4802342, f_files=23556096, f_ffree=23435372, f_favail=23435372, f_flag=4096, f_namemax=255) python -c 'import os; s = os.statvfs ("/boot"); print s' posix.statvfs_result(f_bsize=4096, f_frsize=4096, f_blocks=127147, f_bfree=93815, f_bavail=93815, f_files=512000, f_ffree=511626, f_favail=511626...
2004 Oct 20
1
i-node showing 100 % used whereas the partitionsare empty
...ham Cc: ocfs-users@oss.oracle.com Subject: Re: [Ocfs-users] i-node showing 100 % used whereas the partitionsare empty File a bug on this. I think I know what the issue is. File a bug on oss so that I don't forget about it. diff -r1.165.2.97 ocfsmain.c 1000,1001c1000,1001 < buf->f_files = (unsigned long) (numbits); < buf->f_ffree = (unsigned long) (numbits) - freebits; --- > buf->f_files = numbits; > buf->f_ffree = freebits; On Wed, 2004-10-13 at 16:32, Varghese Abraham wrote: > Output df -i > ------------------ > Filesystem...
2017 Oct 02
3
[PATCH 0/2] builder: Choose better weights in the planner.
It started out as "this'll be just a simple fix ..." and turned into something a bit over-engineered in the end. Here it is anyway. Rich.
2017 Oct 03
4
[PATCH v2 0/2] builder: Choose better weights in the planner.
v1 -> v2: - Removed the f_type field from StatVFS.statvfs structure. - New function StatVFS.filesystem_is_remote, written in C. [Thinking about it, this should probably be called ?is_network_filesystem?, but I can change that before pushing]. - Use statvfs instead of fstatvfs, and statfs instead of fstatfs. - Rejigged the comments in builder/builder.ml to make them simpler
2017 Oct 04
2
[PATCH v3 0/2] builder: Choose better weights in the planner.
v2 -> v3: - Drop gnulib fallback.
2009 Jan 16
2
[PATCH] ocfs2: return f_fsid info in ocfs2_statfs(), v4
...d, 4 insertions(+), 0 deletions(-) diff --git a/fs/ocfs2/super.c b/fs/ocfs2/super.c index 43ed113..c953933 100644 --- a/fs/ocfs2/super.c +++ b/fs/ocfs2/super.c @@ -1425,6 +1425,10 @@ static int ocfs2_statfs(struct dentry *dentry, struct kstatfs *buf) buf->f_bavail = buf->f_bfree; buf->f_files = numbits; buf->f_ffree = freebits; + buf->f_fsid.val[0] = crc32_le(0, osb->uuid_str, OCFS2_VOL_UUID_LEN) + & 0xFFFFFFFFUL; + buf->f_fsid.val[1] = crc32_le(0, osb->uuid_str + OCFS2_VOL_UUID_LEN, + OCFS2_VOL_UUID_LEN) & 0xFFFFFFFFUL; brelse(bh); -- Coly Li SuSE La...
2009 Jan 15
2
[PATCH] ocfs2: return f_fsid info in ocfs2_statfs()
...ed, 2 insertions(+), 0 deletions(-) diff --git a/fs/ocfs2/super.c b/fs/ocfs2/super.c index 43ed113..fdab98a 100644 --- a/fs/ocfs2/super.c +++ b/fs/ocfs2/super.c @@ -1425,6 +1425,8 @@ static int ocfs2_statfs(struct dentry *dentry, struct kstatfs *buf) buf->f_bavail = buf->f_bfree; buf->f_files = numbits; buf->f_ffree = freebits; + buf->f_fsid.val[0] = osb->uuid_hash & 0xFFFFFFFFUL; + buf->f_fsid.val[1] = 0; brelse(bh); -- Coly Li SuSE Labs
2007 Aug 27
17
statvfs change
...tatic int cstatvfs32(struct vfs *vfsp, struct statvfs32 *ubp) { @@ -114,10 +135,28 @@ if (ds64.f_bfree == (fsblkcnt64_t)-1) ds64.f_bfree = UINT32_MAX; + /* + * If we''re about to cause EOVERFLOW with any of the inode + * counts, cap the value(s) at UINT32_MAX. + */ + if (ds64.f_files > UINT32_MAX) + ds64.f_files = UINT32_MAX; + if (ds64.f_ffree > UINT32_MAX) + ds64.f_ffree = UINT32_MAX; + if (ds64.f_favail > UINT32_MAX) + ds64.f_favail = UINT32_MAX; + + /* + * If necessary, try to avoid EOVERFLOW by increasing f_frsize. + */ if (ds64.f_blocks > UINT32_MAX ||...
2018 Jan 04
2
Re: virtdf outputs on host differs from df in guest
...redhat.com> wrote: >On Thu, Jan 04, 2018 at 12:58:40PM +0800, Chen Fan wrote: >[In guest] >> python -c 'import os; s = os.statvfs ("/"); print s' >> posix.statvfs_result(f_bsize=4096, f_frsize=4096, f_blocks=5886149, >> f_bfree=4802342, f_bavail=4802342, f_files=23556096, >> f_ffree=23435372, f_favail=23435372, f_flag=4096, f_namemax=255) >> >> python -c 'import os; s = os.statvfs ("/boot"); print s' >> posix.statvfs_result(f_bsize=4096, f_frsize=4096, f_blocks=127147, >> f_bfree=93815, f_bavail=93815, f_fil...
2018 Jan 04
0
Re: virtdf outputs on host differs from df in guest
On Thu, Jan 04, 2018 at 12:58:40PM +0800, Chen Fan wrote: [In guest] > python -c 'import os; s = os.statvfs ("/"); print s' > posix.statvfs_result(f_bsize=4096, f_frsize=4096, f_blocks=5886149, > f_bfree=4802342, f_bavail=4802342, f_files=23556096, > f_ffree=23435372, f_favail=23435372, f_flag=4096, f_namemax=255) > > python -c 'import os; s = os.statvfs ("/boot"); print s' > posix.statvfs_result(f_bsize=4096, f_frsize=4096, f_blocks=127147, > f_bfree=93815, f_bavail=93815, f_files=512000, f_ffree=5...
2004 Oct 13
1
i-node showing 100 % used whereas the partitions are empty
Output df -i ------------------ Filesystem Inodes IUsed IFree IUse% Mounted on / /dev/sde 348548 348195 353 100% /ocfsa01 /dev/sdf 348548 348195 353 100% /ocfsa02 /dev/sdg 348548 348195 353 100% /ocfsa03 /dev/sdk 139410 138073 1337 100% /ocfsq01 Output df -kP ----------------------- Filesystem
2007 Aug 30
0
[ufs-discuss] statvfs change
...rd requiring "X free - not X+1" is, hmm, >to say it politically correct, "difficult to meet with a filesystem that >does compress/tail-compact". The point I was complaining about with "X free - not X+1" was that the suggested changes cap the values returned in f_files, f_ffree, and f_favail at UINT32_MAX. If a 32-bit statvfs() returns UINT32_MAX for any of these values when a simultaneous 64-bit statvfs() or a statvfs64() would set one or more of those values to a larger value (I don''t care if it is +1, *2, or *1000), I think we have a problem. >Th...
2019 May 05
3
Staged installation fail on some file systems
...ESTORER|SA_RESTART|SA_SIGINFO, 0x7fde2bc1c5d0}, NULL, 8) = 0 rt_sigprocmask(SIG_UNBLOCK, [RTMIN RT_1], NULL, 8) = 0 getrlimit(RLIMIT_STACK, {rlim_cur=8192*1024, rlim_max=RLIM64_INFINITY}) = 0 statfs("/sys/fs/selinux", {f_type=SELINUX_MAGIC, f_bsize=4096, f_blocks=0, f_bfree=0, f_bavail=0, f_files=0, f_ffree=0, f_fsid={0, 0}, f_namelen=255, f_frsize=4096, f_flags=ST_VALID|ST_RELATIME}) = 0 statfs("/sys/fs/selinux", {f_type=SELINUX_MAGIC, f_bsize=4096, f_blocks=0, f_bfree=0, f_bavail=0, f_files=0, f_ffree=0, f_fsid={0, 0}, f_namelen=255, f_frsize=4096, f_flags=ST_VALID|ST_RELATIME})...
2006 Jan 25
1
EXT3: failed to claim external journal device.
We are having problems remounting an ext3 filesystem using an external journal device. The filesystem in question was working fine until the server was rebooted. This is what we see on dmesg when trying to mount: EXT3: failed to claim external journal device. The external journal lives on a LVM2 logical volume and it seems to be accessible ( we can dumpe2fs and see filesystem information).
2019 May 07
2
Staged installation fail on some file systems
...1c5d0}, NULL, 8) = 0 > > rt_sigprocmask(SIG_UNBLOCK, [RTMIN RT_1], NULL, 8) = 0 > > getrlimit(RLIMIT_STACK, {rlim_cur=8192*1024, rlim_max=RLIM64_INFINITY}) = 0 > > statfs("/sys/fs/selinux", {f_type=SELINUX_MAGIC, f_bsize=4096, > > f_blocks=0, f_bfree=0, f_bavail=0, f_files=0, f_ffree=0, f_fsid={0, > > 0}, f_namelen=255, f_frsize=4096, f_flags=ST_VALID|ST_RELATIME}) = 0 > > statfs("/sys/fs/selinux", {f_type=SELINUX_MAGIC, f_bsize=4096, > > f_blocks=0, f_bfree=0, f_bavail=0, f_files=0, f_ffree=0, f_fsid={0, > > 0}, f_namelen=255, f_frs...
2018 Jan 04
0
Re: virtdf outputs on host differs from df in guest
To summarise: >[In guest] > python -c 'import os; s = os.statvfs ("/boot"); print s' > posix.statvfs_result(f_bsize=4096, f_frsize=4096, f_blocks=127147, > f_bfree=93815, f_bavail=93815, f_files=512000, f_ffree=511626, > f_favail=511626, f_flag=4096, f_namemax=255) >[From the host via libguestfs] > # sudo guestfish --ro -d rpm-build-for-7.2 -i statvfs /boot > bsize: 4096 > frsize: 4096 > blocks: 127147 > bfree: 100215 > bavail: 100215 > files: 512000 > ffree:...
2009 Jan 15
0
[PATCH] ocfs2: return f_fsid info in ocfs2_statfs(), v2
...ed, 2 insertions(+), 0 deletions(-) diff --git a/fs/ocfs2/super.c b/fs/ocfs2/super.c index 43ed113..fdab98a 100644 --- a/fs/ocfs2/super.c +++ b/fs/ocfs2/super.c @@ -1425,6 +1425,8 @@ static int ocfs2_statfs(struct dentry *dentry, struct kstatfs *buf) buf->f_bavail = buf->f_bfree; buf->f_files = numbits; buf->f_ffree = freebits; + buf->f_fsid.val[0] = osb->uuid_hash & 0xFFFFFFFFUL; + buf->f_fsid.val[1] = 0; brelse(bh); -- Coly Li SuSE Labs
2009 Jan 15
0
[PATCH] ocfs2: return f_fsid info in ocfs2_statfs(), v3
...ed, 2 insertions(+), 0 deletions(-) diff --git a/fs/ocfs2/super.c b/fs/ocfs2/super.c index 43ed113..db837ee 100644 --- a/fs/ocfs2/super.c +++ b/fs/ocfs2/super.c @@ -1425,6 +1425,8 @@ static int ocfs2_statfs(struct dentry *dentry, struct kstatfs *buf) buf->f_bavail = buf->f_bfree; buf->f_files = numbits; buf->f_ffree = freebits; + buf->f_fsid.val[0] = osb->uuid_hash & 0xFFFFFFFFUL; + buf->f_fsid.val[1] = (osb->uuid_hash >> 32) & 0xFFFFFFFFUL; brelse(bh); -- Coly Li SuSE Labs
2006 Aug 17
0
[RFC] proposed extensions for SFTP
...); + buffer_put_int(&msg, id); + buffer_put_int(&msg, st->f_bsize); + buffer_put_int(&msg, st->f_frsize); + buffer_put_int64(&msg, st->f_blocks); + buffer_put_int64(&msg, st->f_bfree); + buffer_put_int64(&msg, st->f_bavail); + buffer_put_int64(&msg, st->f_files); + buffer_put_int64(&msg, st->f_ffree); + buffer_put_int64(&msg, st->f_favail); + buffer_put_int(&msg, st->f_fsid); + buffer_put_int(&msg, flag); + buffer_put_int(&msg, st->f_namemax); + send_msg(&msg); + buffer_free(&msg); +} + /* parse incoming */ stat...