Skip to contentSkip to conversation

mount.nilfs2: add "uhelper=" option

PATCH In review Jiro SEKIBA 1 participant 2 messages Jul 23, 2010 1 message not in the archive NILFS2 filesystem

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 mount.nilfs2: add "uhelper=" option

Hi,

This is a patch against mount.nilfs2.

I'm trying to add nilfs2 support on several software stack to control nilfs2 partition from palimpsest(gnome-disk-utility). And found that the option is required to handled properly.

Standard mount command takes uhelper=<helper_name> option to tell the mount is under <helper_name> control. When this option is specified, umount.<helper_name> is called on unmount time.

This option is used when mount is triggered by udisks. udisks is a dbus service daemon. The service is used by Palimpsest. To controll nilfs2 partition from palimpsest, interpret the option is required.

---
 sbin/mount/mount_opts.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
sbin/mount/mount_opts.c +2 -1
index 9db599f..0c6ca79 100644
@@ -98,7 +98,7 @@ static const struct opt_map opt_map[] = {
 };
 
 static const char *opt_loopdev, *opt_vfstype, *opt_offset, *opt_encryption,
-	*opt_speed, *opt_comment;
+	*opt_speed, *opt_comment, *opt_uhelper;
 
 static struct string_opt_map {
 	char *tag;
@@ -111,6 +111,7 @@ static struct string_opt_map {
 	{ "encryption=", 0, &opt_encryption },
 	{ "speed=", 0, &opt_speed },
 	{ "comment=", 1, &opt_comment },
+	{ "uhelper=", 1, &opt_uhelper },
 	{ NULL, 0, NULL }
 };
 
Signature · 6 lines
1.5.6.5

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

A message that is not in the archive (sent off-list or not yet received): 876306y7ha.wl%[email protected]

#2 lore raw

Grr I'm sorry. please ignore this patch.

I sent the wrong one.
I'll resend the correct one soon.

Signature · 3 lines
Jiro SEKIBA <[email protected]>

At Fri, 23 Jul 2010 16:37:05 +0900,
Quoted 53 lines · Jiro SEKIBA

Hi,

This is a patch against mount.nilfs2.

I'm trying to add nilfs2 support on several software stack to control nilfs2 partition from palimpsest(gnome-disk-utility). And found that the option is required to handled properly.

Standard mount command takes uhelper=<helper_name> option to tell the mount is under <helper_name> control. When this option is specified, umount.<helper_name> is called on unmount time.

This option is used when mount is triggered by udisks. udisks is a dbus service daemon. The service is used by Palimpsest. To controll nilfs2 partition from palimpsest, interpret the option is required.

---
 sbin/mount/mount_opts.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
sbin/mount/mount_opts.c +2 -1
index 9db599f..0c6ca79 100644
@@ -98,7 +98,7 @@ static const struct opt_map opt_map[] = {
 };
 
 static const char *opt_loopdev, *opt_vfstype, *opt_offset, *opt_encryption,
-	*opt_speed, *opt_comment;
+	*opt_speed, *opt_comment, *opt_uhelper;
 
 static struct string_opt_map {
 	char *tag;
@@ -111,6 +111,7 @@ static struct string_opt_map {
 	{ "encryption=", 0, &opt_encryption },
 	{ "speed=", 0, &opt_speed },
 	{ "comment=", 1, &opt_comment },
+	{ "uhelper=", 1, &opt_uhelper },
 	{ NULL, 0, NULL }
 };
 
Signature · 6 lines
1.5.6.5

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

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