All of lore.kernel.org
 help / color / mirror / Atom feed
From: Ivan Shmakov <ivan@gray.siamics.net>
To: linux-ext4@vger.kernel.org
Subject: Re: a (documented) way to get the Ext2+ filesystem size?
Date: Fri, 19 Aug 2011 11:34:58 +0700	[thread overview]
Message-ID: <86obzmuih9.fsf@gray.siamics.net> (raw)
In-Reply-To: 20110818210313.GA4602@thunk.org

>>>>> Ted Ts'o <tytso@mit.edu> writes:
>>>>> On Thu, Aug 18, 2011 at 10:49:38AM +0700, Ivan Shmakov wrote:

[…]

 >> I don't seem to understand.  I've scanned through the
 >> (libext2fs.info) Function Index section (as per the Debian's
 >> e2fslibs-dev package, 1.41.12-2), and I see no mention of a function
 >> that I can use for that.

 > Sorry, the documentation is not necessarily complete; my apologies.

	Perhaps I could take a look at that later.

 >> Thus, I've ended up writing my own one, which takes an ext2_filsys
 >> handle, and references, via its ‘super’ member, the ‘s_blocks_count’
 >> and ‘s_blocks_count_hi’ members of the superblock structure.

 > The function to do this is in the 1.42 dev branch which is in Debian
 > unstable, and it's called ext2fs_block_count().

	ACK.  Thanks!

	As I don't plan to introduce a dependency on anything above
	Debian stable, I'll probably add a configure check for that
	function, and if fails, will use either my own code, or the
	copied from the newer e2fsprogs sources.

 >> However, I was concerned that I don't seem to find the documentation
 >> for these structures' contents anywhere.  (Sans the source, of
 >> course), and wondered, if the interface I use is at least stable?

 > I make a very strong effort to ensure that interfaces which are
 > exposed via the shared library are stable.  If you're not sure,
 > please feel free to ask on the ext4 list.

	ACK.  Thanks.

-- 
FSF associate member #7257	Coming soon: Software Freedom Day
http://mail.sf-day.org/lists/listinfo/ planning-ru (ru), sfd-discuss (en)

--
To unsubscribe from this list: send the line "unsubscribe linux-ext4" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

      reply	other threads:[~2011-08-19  4:35 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-08-16 11:37 a (documented) way to get the Ext2+ filesystem size? Ivan Shmakov
2011-08-16 14:21 ` Jan Kara
2011-08-17 18:31 ` Ted Ts'o
2011-08-17 18:50   ` Ivan Shmakov
2011-08-17 22:09     ` Ted Ts'o
2011-08-18  2:34       ` Steven Liu
2011-08-18  4:25         ` e2dis example usage pattern Ivan Shmakov
2011-08-18  3:49       ` a (documented) way to get the Ext2+ filesystem size? Ivan Shmakov
2011-08-18 21:03         ` Ted Ts'o
2011-08-19  4:34           ` Ivan Shmakov [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=86obzmuih9.fsf@gray.siamics.net \
    --to=ivan@gray.siamics.net \
    --cc=linux-ext4@vger.kernel.org \
    --cc=oneingray@gmail.com \
    /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.