From: fruktopus@gmail.com (Stephan Müller)
To: kernelnewbies@lists.kernelnewbies.org
Subject: Filesize in sysfs, debugfs, ...
Date: Fri, 26 Jun 2015 10:00:03 +0200 [thread overview]
Message-ID: <558D0683.8080205@gmail.com> (raw)
Hi all,
I have a question, what is the policy on file size in sysfs and especially in debugfs?
Many (but not all) of the files report a size of 0. Recently I diffed against a file in sysfs. The files were identical, despite the fact one reported size 0. I got the unpleasant result
diff -as file1 file2 (treat both as text, report identical files)
Files file1 and file2 are identical
diff -asq file1 file2 (treat both as text, report just yes/no)
Files file1 and file2 differ
In brief mode diff looks first for file sizes and stops if they don't match.
For files which don't differ in size (e.q, exposing a bool) it would be easy to set the proper size for others it's not.
Thank you,
Stephan
reply other threads:[~2015-06-26 8:00 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=558D0683.8080205@gmail.com \
--to=fruktopus@gmail.com \
--cc=kernelnewbies@lists.kernelnewbies.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).