Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1458726
| From | Salah Triki <salah.triki@gmail.com> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | Re: [PATCH 2/3] fs: befs: check flags field to validate the superblock state |
| Date | 2016-08-09 15:10 +0200 |
| Message-ID | <s4eX7-7Yv-5@gated-at.bofh.it> (permalink) |
| References | <s4eu6-7y7-11@gated-at.bofh.it> <s4eu6-7y7-33@gated-at.bofh.it> <s4eDL-7BJ-19@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
On Tue, Aug 09, 2016 at 01:40:25PM +0100, Luis de Bethencourt wrote:
> On 09/08/16 13:32, Salah Triki wrote:
> > flags field records the superblock state, so check if it is equal to
> > BEFS_DIRTY.
> >
> > Signed-off-by: Salah Triki <salah.triki@gmail.com>
> > ---
> > fs/befs/super.c | 2 +-
> > 1 file changed, 1 insertion(+), 1 deletion(-)
> >
> > diff --git a/fs/befs/super.c b/fs/befs/super.c
> > index 5ab75e8..79be409 100644
> > --- a/fs/befs/super.c
> > +++ b/fs/befs/super.c
> > @@ -103,7 +103,7 @@ befs_check_sb(struct super_block *sb)
> > return BEFS_ERR;
> > }
> >
> > - if (befs_sb->log_start != befs_sb->log_end) {
> > + if (befs_sb->log_start != befs_sb->log_end || befs_sb->flags == BEFS_DIRTY) {
> > befs_error(sb, "Filesystem not clean! There are blocks in the "
> > "journal. You must boot into BeOS and mount this volume "
> > "to make it clean.");
> >
>
> Hi Salah,
>
> Looks like a good idea. Any reason why commit 1/2, where you add the flag, and commit
> 2/2, where you read it, are split and not in the same commit? Curious.
>
> Will test it soon.
>
> Thanks :)
> Luis
Hi Luis,
I split the two commits for sake of clarity. But now I realize that it
is not usefull at all.
Will send a corrected patch soon.
Thanx
Salah
Back to linux.kernel | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
[PATCH 1/3] fs: befs: load flags field from disk Salah Triki <salah.triki@gmail.com> - 2016-08-09 14:40 +0200
[PATCH 2/3] fs: befs: check flags field to validate the superblock state Salah Triki <salah.triki@gmail.com> - 2016-08-09 14:40 +0200
Re: [PATCH 2/3] fs: befs: check flags field to validate the superblock state Luis de Bethencourt <luisbg@osg.samsung.com> - 2016-08-09 14:50 +0200
Re: [PATCH 2/3] fs: befs: check flags field to validate the superblock state Salah Triki <salah.triki@gmail.com> - 2016-08-09 15:10 +0200
Re: [PATCH 2/3] fs: befs: check flags field to validate the superblock state Luis de Bethencourt <luisbg@osg.samsung.com> - 2016-08-09 16:00 +0200
[PATCH 3/3] fs: befs: fix typo in befs_sb_info Salah Triki <salah.triki@gmail.com> - 2016-08-09 14:40 +0200
Re: [PATCH 3/3] fs: befs: fix typo in befs_sb_info Luis de Bethencourt <luisbg@osg.samsung.com> - 2016-08-09 14:50 +0200
csiph-web