Merge lp:~csurbhi/ubuntu/maverick/mountall/mountall.fix-460246 into lp:ubuntu/maverick/mountall

Proposed by Surbhi Palande
Status: Rejected
Rejected by: Martin Pitt
Proposed branch: lp:~csurbhi/ubuntu/maverick/mountall/mountall.fix-460246
Merge into: lp:ubuntu/maverick/mountall
Diff against target: 51 lines (+20/-11)
2 files modified
debian/changelog (+7/-0)
src/mountall.c (+13/-11)
To merge this branch: bzr merge lp:~csurbhi/ubuntu/maverick/mountall/mountall.fix-460246
Reviewer Review Type Date Requested Status
Martin Pitt Disapprove
Artur Rona (community) Needs Fixing
Review via email: mp+32785@code.launchpad.net

Description of the change

btrfsck does not accept any switches like -A/-f/-y/-C<fd> as of now. So till these switches are implemented in btrfsck avoid invoking "fsck -t btrfs" with them.

Please do consider merging this for maverick.

To post a comment you must log in.
Revision history for this message
Artur Rona (ari-tczew) wrote :

Surbhi thanks for the patch. Could you update patch for latest package 2.19?

review: Needs Fixing
Revision history for this message
Martin Pitt (pitti) wrote :

The changes still apply cleanly, and natty's btrfsck still doesn't take any switches, so this still applies.

review: Approve
Revision history for this message
Martin Pitt (pitti) wrote :

On second sight, I think we should rather fix btrfsck itself to ignore arguments for now, as proposed in the Debian bug report.

review: Disapprove

Unmerged revisions

335. By Surbhi Palande

btrfsck does not accept any switch as of now. So avoid using any switches
like -a/-C<fd>/-f to btrfsck till these are implemented. (LP: #460246)

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
=== modified file 'debian/changelog'
--- debian/changelog 2010-07-22 15:13:09 +0000
+++ debian/changelog 2010-08-16 16:42:41 +0000
@@ -1,3 +1,10 @@
1mountall (2.15ubuntu2) UNRELEASED; urgency=low
2
3 * btrfsck does not accept any switch as of now. So avoid using any switches
4 like -a/-C<fd>/-f to btrfsck till these are implemented. (LP: #460246)
5
6 -- Surbhi Palande <surbhi.palande@canonical.com> Mon, 16 Aug 2010 19:24:22 +0300
7
1mountall (2.15) UNRELEASED; urgency=low8mountall (2.15) UNRELEASED; urgency=low
29
3 [ Scott James Remnant ]10 [ Scott James Remnant ]
411
=== modified file 'src/mountall.c'
--- src/mountall.c 2010-05-08 11:53:50 +0000
+++ src/mountall.c 2010-08-16 16:42:41 +0000
@@ -1999,19 +1999,21 @@
19991999
2000 args = NIH_MUST (nih_str_array_new (NULL));2000 args = NIH_MUST (nih_str_array_new (NULL));
2001 NIH_MUST (nih_str_array_add (&args, NULL, &args_len, "fsck"));2001 NIH_MUST (nih_str_array_add (&args, NULL, &args_len, "fsck"));
2002 if (fsck_fix || mnt->fsck_fix) {2002 if(strcmp (mnt->type, "btrfs") != 0) {
2003 NIH_MUST (nih_str_array_add (&args, NULL, &args_len, "-y"));2003 if (fsck_fix || mnt->fsck_fix) {
2004 } else {2004 NIH_MUST (nih_str_array_add (&args, NULL, &args_len, "-y"));
2005 NIH_MUST (nih_str_array_add (&args, NULL, &args_len, "-a"));2005 } else {
2006 }2006 NIH_MUST (nih_str_array_add (&args, NULL, &args_len, "-a"));
2007 if (fds[1] >= 0) {2007 }
2008 nih_local char *arg = NULL;2008 if (fds[1] >= 0) {
2009 nih_local char *arg = NULL;
20092010
2010 arg = NIH_MUST (nih_sprintf (NULL, "-C%d", fds[1]));2011 arg = NIH_MUST (nih_sprintf (NULL, "-C%d", fds[1]));
2011 NIH_MUST (nih_str_array_addp (&args, NULL, &args_len, arg));2012 NIH_MUST (nih_str_array_addp (&args, NULL, &args_len, arg));
2013 }
2014 if (force_fsck)
2015 NIH_MUST (nih_str_array_add (&args, NULL, &args_len, "-f"));
2012 }2016 }
2013 if (force_fsck)
2014 NIH_MUST (nih_str_array_add (&args, NULL, &args_len, "-f"));
2015 NIH_MUST (nih_str_array_add (&args, NULL, &args_len, "-t"));2017 NIH_MUST (nih_str_array_add (&args, NULL, &args_len, "-t"));
2016 NIH_MUST (nih_str_array_add (&args, NULL, &args_len, mnt->type));2018 NIH_MUST (nih_str_array_add (&args, NULL, &args_len, mnt->type));
2017 NIH_MUST (nih_str_array_add (&args, NULL, &args_len, mnt->device));2019 NIH_MUST (nih_str_array_add (&args, NULL, &args_len, mnt->device));

Subscribers

People subscribed via source and target branches